do I really have to do this

This commit is contained in:
tildearrow 2024-05-25 21:35:06 -05:00
parent 91b5babb27
commit bcaf080d58

View file

@ -976,7 +976,7 @@ void DivEngine::delUnusedSamples() {
bool isUsed[256];
memset(isUsed,0,256*sizeof(bool));
// scan
// scan in instruments
for (DivInstrument* i: song.ins) {
if ((i->type==DIV_INS_PCE && i->amiga.useSample) ||
i->type==DIV_INS_MSM6258 ||
@ -1019,6 +1019,13 @@ void DivEngine::delUnusedSamples() {
}
}
// scan in pattern (legacy sample mode)
for (DivSubSong* i: song.subsong) {
for (int j=0; j<getChannelCount(song.system[index]); j++) {
}
}
// delete
for (int i=0; i<song.sampleLen; i++) {
if (!isUsed[i]) {