From 591de1ecb476ca42506dfbffb80b381b455ce1ce Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 21 Nov 2008 07:52:13 -0800 Subject: Wait until one full fragment is empty before mixing --- Alc/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') 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; -- cgit v1.2.3