summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-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 @@
33#include "thread-win32.h" 33#include "thread-win32.h"
34#include "debug.h" 34#include "debug.h"
35 35
36void pcm_play_stop(void);
37
36static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header, 38static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header,
37 HANDLE event) 39 HANDLE event)
38{ 40{
@@ -142,6 +144,8 @@ void sound_playback_thread(void)
142 sound_play_chunk(wave_out, &header2, event); 144 sound_play_chunk(wave_out, &header2, event);
143 } 145 }
144 146
147 pcm_play_stop();
148
145 DEBUGF("stopping simulator playback\n"); 149 DEBUGF("stopping simulator playback\n");
146 150
147 waveOutReset(wave_out); 151 waveOutReset(wave_out);