Test the correct offset for the loop start range

This commit is contained in:
Chris Robinson 2018-01-04 21:21:48 -08:00
parent 510bccb6ac
commit ecd327e5e1

View File

@ -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);