Properly stop the audio in the win32 simulated playback

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-09-07 06:42:05 +00:00
parent 6f44a25efa
commit 51484e7d60

View file

@ -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);