C219: fix bank note off

This commit is contained in:
tildearrow 2023-08-29 03:38:59 -05:00
parent fccb6aff6e
commit ca51ee9f32
1 changed files with 7 additions and 1 deletions

View File

@ -249,7 +249,7 @@ void DivPlatformC140::tick(bool sysTick) {
// shut everyone else up
for (int j=0; j<4; j++) {
int ch=(i&(~3))|j;
if (chan[ch].active && (i&3)!=j) {
if (chan[ch].active && !chan[ch].keyOn && (i&3)!=j) {
chan[ch].sample=-1;
chan[ch].active=false;
chan[ch].keyOff=true;
@ -447,6 +447,12 @@ void DivPlatformC140::forceIns() {
chan[i].volChangedR=true;
chan[i].sample=-1;
}
if (is219) {
// restore banks
for (int i=0; i<4; i++) {
rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]);
}
}
}
void* DivPlatformC140::getChanState(int ch) {