parent
3e87c0a0df
commit
d700bfca08
4 changed files with 12 additions and 6 deletions
|
|
@ -4013,11 +4013,13 @@ bool DivEngine::init() {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool DivEngine::quit() {
|
||||
bool DivEngine::quit(bool saveConfig) {
|
||||
deinitAudioBackend();
|
||||
quitDispatch();
|
||||
logI("saving config.");
|
||||
saveConf();
|
||||
if (saveConfig) {
|
||||
logI("saving config.");
|
||||
saveConf();
|
||||
}
|
||||
active=false;
|
||||
for (int i=0; i<DIV_MAX_OUTPUTS; i++) {
|
||||
if (oscBuf[i]!=NULL) delete[] oscBuf[i];
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ struct DivDispatchContainer {
|
|||
void fillBuf(size_t runtotal, size_t offset, size_t size);
|
||||
void clear();
|
||||
void init(DivSystem sys, DivEngine* eng, int chanCount, double gotRate, const DivConfig& flags, bool isRender=false);
|
||||
void quit();
|
||||
void quit(bool saveConfig=true);
|
||||
DivDispatchContainer():
|
||||
dispatch(NULL),
|
||||
bbInLen(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue