Wait until one full fragment is empty before mixing

This commit is contained in:
Chris Robinson 2008-11-21 07:52:13 -08:00
parent 3dad17c263
commit 591de1ecb4

View File

@ -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;