QSound: fix loop end being used as sample end
even if loop is disabled
This commit is contained in:
parent
7cf66b56ee
commit
17420d5d23
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue