diff options
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libao2/ao_win32.c b/libao2/ao_win32.c index 11883a92e4..93622b944b 100644 --- a/libao2/ao_win32.c +++ b/libao2/ao_win32.c @@ -251,7 +251,8 @@ static int init(int rate,int channels,int format,int flags) // close audio device static void uninit(int immed) { - if(!immed)while(buffered_bytes > 0)usec_sleep(50000); + if(!immed) + usec_sleep(get_delay() * 1000 * 1000); else buffered_bytes=0; waveOutReset(hWaveOut); waveOutClose(hWaveOut); |