removed sleep and made the audio event block
authorGeorgios Atheridis <georgios@atheridis.org>
Sat, 14 Jan 2023 05:41:50 +0000 (05:41 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Sat, 14 Jan 2023 05:41:50 +0000 (05:41 +0000)
announcer.pyw

index b770a356244ec80d31cca013f3fc092b73274d5f..5c382c03efd918043903408a148900ee970bff5e 100644 (file)
@@ -71,8 +71,7 @@ volume = 100
 def play_event_sound(event):
     ap = audioplayer.AudioPlayer(SOUNDS_FOLDER + random.choice(EVENT_SOUNDS[event]))
     ap.volume = volume
-    ap.play(block=False)
-    time.sleep(10)
+    ap.play(block=True)
 
 def update_volume(v):
     global volume