QSound: fix loop end being used as sample end

even if loop is disabled
This commit is contained in:
tildearrow 2025-09-08 02:32:18 -05:00
parent 7cf66b56ee
commit 17420d5d23

View file

@ -322,7 +322,7 @@ void DivPlatformQSound::tick(bool sysTick) {
} }
int loopStart=s->loopStart; int loopStart=s->loopStart;
int length=s->loopEnd; int length=s->isLoopable()?s->loopEnd:s->samples;
if (i<16) { if (i<16) {
if (length>65536-16) { if (length>65536-16) {
length=65536-16; length=65536-16;