summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-09-07 06:42:05 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-09-07 06:42:05 +0000
commit51484e7d6098661f9b3feac5045d03718498d997 (patch)
treeb15ec152f8d0a49066e38b8f00ec3647d4bdaef9 /uisimulator
parent6f44a25efa8ebef6128bf56f718c643ba3ad5761 (diff)
downloadrockbox-51484e7d6098661f9b3feac5045d03718498d997.tar.gz
rockbox-51484e7d6098661f9b3feac5045d03718498d997.tar.bz2
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
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 @@
#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);