From b8de63d60806bdaabde0179b16b0837e0bb7afb7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 2 Jan 2018 19:29:58 -0800 Subject: [PATCH] Reset CompLen when loading loop repeats in the mixer --- Alc/mixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Alc/mixer.c b/Alc/mixer.c index bbbfba18..5e5ba760 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -427,6 +427,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei { const ALsizei SizeToDo = mini(SrcBufferSize - FilledAmt, LoopSize); + CompLen = 0; for(i = 0;i < BufferListItem->num_buffers;i++) { const ALbuffer *buffer = BufferListItem->buffers[i];