C219: fix bank note off
This commit is contained in:
parent
fccb6aff6e
commit
ca51ee9f32
|
@ -249,7 +249,7 @@ void DivPlatformC140::tick(bool sysTick) {
|
||||||
// shut everyone else up
|
// shut everyone else up
|
||||||
for (int j=0; j<4; j++) {
|
for (int j=0; j<4; j++) {
|
||||||
int ch=(i&(~3))|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].sample=-1;
|
||||||
chan[ch].active=false;
|
chan[ch].active=false;
|
||||||
chan[ch].keyOff=true;
|
chan[ch].keyOff=true;
|
||||||
|
@ -447,6 +447,12 @@ void DivPlatformC140::forceIns() {
|
||||||
chan[i].volChangedR=true;
|
chan[i].volChangedR=true;
|
||||||
chan[i].sample=-1;
|
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) {
|
void* DivPlatformC140::getChanState(int ch) {
|
||||||
|
|
Loading…
Reference in a new issue