summaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-20 00:44:39 -0700
committerChris Robinson <[email protected]>2009-09-20 00:44:39 -0700
commit86eefdb2a8ccc6171d15366dcb6c1a081d7592da (patch)
tree29ace8b55b14241f59add48ac56a35bff49532ee /Alc/alsa.c
parent750399ccd7409d570712509720d2a8cc845963c1 (diff)
Mix all pending periods at once instead of one at a time
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 3fd906b4..10d50a89 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -203,7 +203,7 @@ static ALuint ALSAProc(ALvoid *ptr)
AL_PRINT("Wait timeout... buffer size too low?\n");
continue;
}
- avail = pDevice->UpdateSize;
+ avail -= avail%pDevice->UpdateSize;
// it is possible that contiguous areas are smaller, thus we use a loop
while(avail > 0)