Fix possible issue when bank flag is changed

This commit is contained in:
cam900 2023-04-20 08:54:40 +09:00
parent c69318b222
commit 36f542972c

View file

@ -942,7 +942,11 @@ void DivPlatformX1_010::setFlags(const DivConfig& flags) {
CHECK_CUSTOM_CLOCK;
rate=chipClock/512;
stereo=flags.getBool("stereo",false);
bool prevBanked=isBanked;
isBanked=flags.getBool("isBanked",false);
if (prevBanked|=isBanked) {
parent->renderSamples();
}
for (int i=0; i<16; i++) {
oscBuf[i]->rate=rate;
}