re-initialize dispatch if core settings changed
This commit is contained in:
parent
7732031404
commit
332c6edbed
3 changed files with 16 additions and 3 deletions
|
|
@ -3916,9 +3916,13 @@ void DivEngine::setConsoleMode(bool enable) {
|
|||
consoleMode=enable;
|
||||
}
|
||||
|
||||
bool DivEngine::switchMaster() {
|
||||
bool DivEngine::switchMaster(bool full) {
|
||||
logI("switching output...");
|
||||
deinitAudioBackend(true);
|
||||
if (full) {
|
||||
quitDispatch();
|
||||
initDispatch();
|
||||
}
|
||||
if (initAudioBackend()) {
|
||||
for (int i=0; i<song.systemLen; i++) {
|
||||
disCont[i].setRates(got.rate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue