MSM6295: mark samples after 126 as unloaded
This commit is contained in:
parent
fc95d73e1d
commit
1b40577585
|
@ -469,7 +469,13 @@ void DivPlatformMSM6295::renderSamples(int sysID) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int sampleCount=parent->song.sampleLen;
|
int sampleCount=parent->song.sampleLen;
|
||||||
if (sampleCount>127) sampleCount=127;
|
if (sampleCount>127) {
|
||||||
|
// mark the rest as unavailable
|
||||||
|
for (int i=127; i<sampleCount; i++) {
|
||||||
|
sampleLoaded[i]=false;
|
||||||
|
}
|
||||||
|
sampleCount=127;
|
||||||
|
}
|
||||||
for (int i=0; i<sampleCount; i++) {
|
for (int i=0; i<sampleCount; i++) {
|
||||||
DivSample* s=parent->song.sample[i];
|
DivSample* s=parent->song.sample[i];
|
||||||
if (!s->renderOn[0][sysID]) {
|
if (!s->renderOn[0][sysID]) {
|
||||||
|
|
Loading…
Reference in a new issue