do I really have to do this
This commit is contained in:
parent
91b5babb27
commit
bcaf080d58
|
@ -976,7 +976,7 @@ void DivEngine::delUnusedSamples() {
|
||||||
bool isUsed[256];
|
bool isUsed[256];
|
||||||
memset(isUsed,0,256*sizeof(bool));
|
memset(isUsed,0,256*sizeof(bool));
|
||||||
|
|
||||||
// scan
|
// scan in instruments
|
||||||
for (DivInstrument* i: song.ins) {
|
for (DivInstrument* i: song.ins) {
|
||||||
if ((i->type==DIV_INS_PCE && i->amiga.useSample) ||
|
if ((i->type==DIV_INS_PCE && i->amiga.useSample) ||
|
||||||
i->type==DIV_INS_MSM6258 ||
|
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
|
// delete
|
||||||
for (int i=0; i<song.sampleLen; i++) {
|
for (int i=0; i<song.sampleLen; i++) {
|
||||||
if (!isUsed[i]) {
|
if (!isUsed[i]) {
|
||||||
|
|
Loading…
Reference in a new issue