From 66bc11099e9fdc50f8c9e07fb34a496b628b7efe Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 21 Sep 2025 22:38:16 -0400 Subject: [PATCH] I misremembered the one I wanted it was event.clear not pump. --- speech.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech.py b/speech.py index 7c6c718..7bc6b4f 100644 --- a/speech.py +++ b/speech.py @@ -294,7 +294,7 @@ def _play_dialog_sound(entry, dialog_config, sounds): sound_duration = sound_obj.get_length() if sound_duration > 0: pygame.time.wait(int(sound_duration * 1000)) - pygame.event.pump() # Clear any events queued during sound playback + pygame.event.clear() # Clear all events queued during sound playback elif isinstance(sounds, dict) and sound_to_play in sounds: # Dictionary of pygame sound objects (like from initialize_gui) sound_obj = sounds[sound_to_play] @@ -304,7 +304,7 @@ def _play_dialog_sound(entry, dialog_config, sounds): sound_duration = sound_obj.get_length() if sound_duration > 0: pygame.time.wait(int(sound_duration * 1000)) - pygame.event.pump() # Clear any events queued during sound playback + pygame.event.clear() # Clear all events queued during sound playback elif hasattr(sounds, 'play'): # Try using a play method if available sounds.play(sound_to_play)