aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-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)