GUI: prepare a better new song thingy

This commit is contained in:
tildearrow 2022-03-02 02:22:51 -05:00
parent 8843315256
commit d94e0ec3e7
4 changed files with 489 additions and 46 deletions

View file

@ -534,7 +534,7 @@ void DivEngine::renderSamples() {
qsoundMemLen=memPos+256;
}
void DivEngine::createNew(int* description) {
void DivEngine::createNew(const int* description) {
quitDispatch();
isBusy.lock();
song.unload();

View file

@ -262,7 +262,7 @@ class DivEngine {
DivWavetable* getWave(int index);
DivSample* getSample(int index);
// start fresh
void createNew(int* description);
void createNew(const int* description);
// load a file.
bool load(unsigned char* f, size_t length);
// save as .dmf.