GUI: make the new button work
This commit is contained in:
parent
6635d1c3ec
commit
8428f7da32
3 changed files with 21 additions and 2 deletions
|
|
@ -1428,6 +1428,22 @@ void DivEngine::renderSamples() {
|
|||
}
|
||||
}
|
||||
|
||||
void DivEngine::createNew() {
|
||||
DivSystem sys=song.system;
|
||||
quitDispatch();
|
||||
isBusy.lock();
|
||||
song.unload();
|
||||
song=DivSong();
|
||||
song.system=sys;
|
||||
chans=getChannelCount(song.system);
|
||||
renderSamples();
|
||||
isBusy.unlock();
|
||||
initDispatch();
|
||||
isBusy.lock();
|
||||
reset();
|
||||
isBusy.unlock();
|
||||
}
|
||||
|
||||
void DivEngine::changeSystem(DivSystem which) {
|
||||
quitDispatch();
|
||||
isBusy.lock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue