diff options
author | Chris Robinson <[email protected]> | 2008-11-21 07:52:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-11-21 07:52:13 -0800 |
commit | 591de1ecb476ca42506dfbffb80b381b455ce1ce (patch) | |
tree | 6860cfbde9d65b989009733c08a4b7fb5a76c62d /Alc/dsound.c | |
parent | 3dad17c26344ffa4e58f168ede68d32cf8f29b02 (diff) |
Wait until one full fragment is empty before mixing
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 2 |
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; |