dev194 - OPLL: enable fixedAll by default

issue #1648
This commit is contained in:
tildearrow 2024-03-11 13:49:14 -05:00
parent 0ac63d817d
commit 98396beda9
4 changed files with 16 additions and 4 deletions

View file

@ -54,8 +54,8 @@ class DivWorkPool;
#define DIV_UNSTABLE
#define DIV_VERSION "dev193"
#define DIV_ENGINE_VERSION 193
#define DIV_VERSION "dev194"
#define DIV_ENGINE_VERSION 194
// for imports
#define DIV_VERSION_MOD 0xff01
#define DIV_VERSION_FC 0xff02

View file

@ -2052,6 +2052,18 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) {
}
}
// OPLL fixedAll compat
if (ds.version<194) {
for (int i=0; i<ds.systemLen; i++) {
if (ds.system[i]==DIV_SYSTEM_OPLL ||
ds.system[i]==DIV_SYSTEM_OPLL_DRUMS) {
if (!ds.systemFlags[i].has("fixedAll")) {
ds.systemFlags[i].set("fixedAll",false);
}
}
}
}
if (active) quitDispatch();
BUSY_BEGIN_SOFT;
saveLock.lock();

View file

@ -1099,7 +1099,7 @@ void DivPlatformOPLL::setFlags(const DivConfig& flags) {
oscBuf[i]->rate=rate/2;
}
noTopHatFreq=flags.getBool("noTopHatFreq",false);
fixedAll=flags.getBool("fixedAll",false);
fixedAll=flags.getBool("fixedAll",true);
}
int DivPlatformOPLL::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {

View file

@ -396,7 +396,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
int clockSel=flags.getInt("clockSel",0);
int patchSet=flags.getInt("patchSet",0);
bool noTopHatFreq=flags.getBool("noTopHatFreq",false);
bool fixedAll=flags.getBool("fixedAll",false);
bool fixedAll=flags.getBool("fixedAll",true);
ImGui::Text("Clock rate:");
ImGui::Indent();