changeset 35470:116dbb38eac0

Reduce sleep time now that we will spend much less time in this loop.
author reimar
date Sun, 02 Dec 2012 21:40:37 +0000
parents 539bfa51eb72
children f2a11c8695a4
files libao2/ao_dsound.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_dsound.c	Sun Dec 02 21:39:29 2012 +0000
+++ b/libao2/ao_dsound.c	Sun Dec 02 21:40:37 2012 +0000
@@ -574,7 +574,7 @@
 		// the right amount of time first.
 		usec_sleep(get_delay() * 1000 * 1000);
 		while(!IDirectSoundBuffer_GetStatus(hdsbuf,&status) && (status&DSBSTATUS_PLAYING))
-			usec_sleep(20000);
+			usec_sleep(5000);
 	}
 	DestroyBuffer();
 	UninitDirectSound();