mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-07 05:15:05 +00:00
22 lines
318 B
C++
22 lines
318 B
C++
#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;
|
|
}
|
|
sample.clear();
|
|
|
|
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
|
pat[i].wipePatterns();
|
|
}
|
|
}
|