diff options
Diffstat (limited to 'uisimulator/win32')
-rw-r--r-- | uisimulator/win32/sound.c | 4 |
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 | ||
36 | void pcm_play_stop(void); | ||
37 | |||
36 | static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header, | 38 | static 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); |