From ecd327e5e1d603de1522f2afed6882eaab775b28 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 4 Jan 2018 21:21:48 -0800 Subject: [PATCH] Test the correct offset for the loop start range --- Alc/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/mixer.c b/Alc/mixer.c index 34c4563c..5d6d14d7 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -434,7 +434,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei const ALubyte *Data = buffer->data; ALsizei DataSize; - if(DataPosInt >= buffer->SampleLen) + if(LoopStart >= buffer->SampleLen) continue; DataSize = mini(SizeToDo, buffer->SampleLen - LoopStart);