# HG changeset patch # User reimar # Date 1354484437 0 # Node ID 116dbb38eac0bbdfd7ec2cf12b0c0621f8c37c23 # Parent 539bfa51eb729de6af030f8f1601465977223cd2 Reduce sleep time now that we will spend much less time in this loop. diff -r 539bfa51eb72 -r 116dbb38eac0 libao2/ao_dsound.c --- 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();