diff options
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index a4712207..fc3fecbd 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -367,6 +367,7 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo) if(Looping && Source->SourceType == AL_STATIC) { + assert(LoopEnd > LoopStart); DataPosInt = ((DataPosInt-LoopStart)%(LoopEnd-LoopStart)) + LoopStart; break; } |