Reset CompLen when loading loop repeats in the mixer

This commit is contained in:
Chris Robinson
2018-01-02 19:29:58 -08:00
parent dcc0f6e25d
commit b8de63d608
+1
View File
@@ -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];