diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-07 06:42:05 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-07 06:42:05 +0000 |
commit | 51484e7d6098661f9b3feac5045d03718498d997 (patch) | |
tree | b15ec152f8d0a49066e38b8f00ec3647d4bdaef9 | |
parent | 6f44a25efa8ebef6128bf56f718c643ba3ad5761 (diff) | |
download | rockbox-51484e7d6098661f9b3feac5045d03718498d997.tar.gz rockbox-51484e7d6098661f9b3feac5045d03718498d997.zip |
Properly stop the audio in the win32 simulated playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7492 a1c6a512-1295-4272-9138-f99709370657
-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); |