Merge branch 'master' into es5506_alt

This commit is contained in:
cam900 2022-12-15 16:06:59 +09:00 committed by GitHub
commit 8365d1c977
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1400 additions and 150 deletions

View file

@ -3918,9 +3918,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);