diff options
author | Chris Robinson <[email protected]> | 2018-01-04 21:21:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-04 21:21:48 -0800 |
commit | ecd327e5e1d603de1522f2afed6882eaab775b28 (patch) | |
tree | 8b09359a82204b7e9a2253035f04065fd86f3034 /Alc/mixer.c | |
parent | 510bccb6acda071618f18b70137c607a42ba16ff (diff) |
Test the correct offset for the loop start range
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |