Skip to content

Commit

Permalink
Adding Nyan Cat sound
Browse files Browse the repository at this point in the history
  • Loading branch information
schielb committed Sep 1, 2023
1 parent 758a501 commit b4cd450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demos/video/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def run(self):

# Let Sully Groan if it is the right video
if self.target == "sully.npz":
self.output_queue.put("SOUND " + "sss_sounds/Sully_Groan.mp3")
self.output_queue.put("BACKGROUND SOUND " + "sss_sounds/Sully_Groan.mp3")
pass

if self.target == "nyan.npz":
self.output_queue.put("BACKGROUND SOUND " + "sss_sounds/Nyan_Cat.mp3")
pass

# Iterate through the frames
Expand All @@ -112,6 +116,7 @@ def run(self):

# Skip to the next video
if self.new_video:
self.output_queue.put("STOP SOUND")
break

# Draw frame to screen
Expand All @@ -124,6 +129,7 @@ def run(self):
def stop(self):
# Reset the state of the demo if needed, else leave blank
self.screen.clear()
self.output_queue.put("STOP SOUND")
pass

def get_input_buff(self):
Expand Down
Binary file added sss_sounds/Nyan_Cat.mp3
Binary file not shown.

0 comments on commit b4cd450

Please sign in to comment.