swan: Implement headphone/internal speaker output toggle

This commit is contained in:
Adrian Siekierka 2025-03-08 19:52:37 +01:00 committed by tildearrow
parent 03b87258c8
commit b59fc1e8f5
4 changed files with 30 additions and 9 deletions

View file

@ -2664,7 +2664,19 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
}
break;
}
case DIV_SYSTEM_SWAN:
case DIV_SYSTEM_SWAN: {
bool stereo=flags.getBool("stereo",true);
if (ImGui::Checkbox(_("Headphone output##_SWAN_STEREO"),&stereo)) {
altered=true;
}
if (altered) {
e->lockSave([&]() {
flags.set("stereo",stereo);
});
}
break;
}
case DIV_SYSTEM_BUBSYS_WSG:
case DIV_SYSTEM_PET:
case DIV_SYSTEM_GA20: