MinMod: use loop end instead of sample end
This commit is contained in:
parent
59a25fad70
commit
90859be901
|
@ -316,7 +316,7 @@ void DivPlatformGBAMinMod::tick(bool sysTick) {
|
||||||
size_t maxPos=getSampleMemCapacity();
|
size_t maxPos=getSampleMemCapacity();
|
||||||
start=sampleOff[chan[i].sample];
|
start=sampleOff[chan[i].sample];
|
||||||
if (s->isLoopable()) {
|
if (s->isLoopable()) {
|
||||||
end=MIN(start+MAX(s->length8,1),maxPos);
|
end=MIN(start+MAX(s->loopEnd,1),maxPos);
|
||||||
loop=start+s->loopStart;
|
loop=start+s->loopStart;
|
||||||
} else {
|
} else {
|
||||||
end=MIN(start+s->length8+16,maxPos);
|
end=MIN(start+s->length8+16,maxPos);
|
||||||
|
|
Loading…
Reference in a new issue