C219: looooooool

This commit is contained in:
tildearrow 2023-08-28 04:10:48 -05:00
parent 23a70381c6
commit 4e3de466ce

View file

@ -237,17 +237,17 @@ void DivPlatformC140::tick(bool sysTick) {
if (is219) {
if (groupBank[i>>2]!=bank) {
groupBank[i>>2]=bank;
}
rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]);
// shut everyone else up
for (int j=0; j<4; j++) {
int ch=(i&(~3))|j;
if (chan[ch].active && (i&3)!=j) {
chan[ch].sample=-1;
chan[ch].active=false;
chan[ch].keyOff=true;
chan[ch].macroInit(NULL);
rWrite(0x05+(ch<<4),ctrl);
rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]);
// shut everyone else up
for (int j=0; j<4; j++) {
int ch=(i&(~3))|j;
if (chan[ch].active && (i&3)!=j) {
chan[ch].sample=-1;
chan[ch].active=false;
chan[ch].keyOff=true;
chan[ch].macroInit(NULL);
rWrite(0x05+(ch<<4),ctrl);
}
}
}
} else {