changeset 12146:aaea699d0a67

support immed flag
author faust3
date Tue, 06 Apr 2004 18:06:20 +0000
parents 99798c3cdb93
children 1e98df395332
files libao2/ao_win32.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_win32.c	Tue Apr 06 17:55:36 2004 +0000
+++ b/libao2/ao_win32.c	Tue Apr 06 18:06:20 2004 +0000
@@ -169,8 +169,8 @@
 // close audio device
 static void uninit(int immed)
 {
-    while (buffered_bytes > 0)
-	usec_sleep(50000);
+    if(!immed)while(buffered_bytes > 0)usec_sleep(50000);
+    else buffered_bytes=0;
 	waveOutReset(hWaveOut);
 	waveOutClose(hWaveOut);
 	mp_msg(MSGT_AO, MSGL_V,"waveOut device closed\n");