summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-21 07:52:13 -0800
committerChris Robinson <[email protected]>2008-11-21 07:52:13 -0800
commit591de1ecb476ca42506dfbffb80b381b455ce1ce (patch)
tree6860cfbde9d65b989009733c08a4b7fb5a76c62d
parent3dad17c26344ffa4e58f168ede68d32cf8f29b02 (diff)
Wait until one full fragment is empty before mixing
-rw-r--r--Alc/dsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 38410861..899a0936 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -82,7 +82,7 @@ static ALuint DSoundProc(ALvoid *ptr)
IDirectSoundBuffer_GetCurrentPosition(pData->DSsbuffer, &PlayCursor, NULL);
avail = (PlayCursor-LastCursor+BufferSize) % BufferSize;
- if(avail == 0)
+ if(avail < BufferSize/num_frags)
{
Sleep(1);
continue;