summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uisimulator/win32/sound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/win32/sound.c b/uisimulator/win32/sound.c
index e2a827f0f3..02a5a888d9 100644
--- a/uisimulator/win32/sound.c
+++ b/uisimulator/win32/sound.c
@@ -33,6 +33,8 @@
#include "thread-win32.h"
#include "debug.h"
+void pcm_play_stop(void);
+
static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header,
HANDLE event)
{
@@ -142,6 +144,8 @@ void sound_playback_thread(void)
sound_play_chunk(wave_out, &header2, event);
}
+ pcm_play_stop();
+
DEBUGF("stopping simulator playback\n");
waveOutReset(wave_out);