furnace/src/engine/song.cpp

23 lines
318 B
C++
Raw Normal View History

#include "song.h"
void DivSong::unload() {
for (DivInstrument* i: ins) {
delete i;
}
ins.clear();
for (DivWavetable* i: wave) {
delete i;
}
wave.clear();
for (DivSample* i: sample) {
delete i;
}
2021-12-15 22:32:08 +00:00
sample.clear();
2022-01-08 06:57:37 +00:00
for (int i=0; i<DIV_MAX_CHANS; i++) {
2021-12-15 22:32:08 +00:00
pat[i].wipePatterns();
}
}