Test the correct offset for the loop start range
This commit is contained in:
parent
510bccb6ac
commit
ecd327e5e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user