OPNA: fix forceIns RSS/ADPCM volume

This commit is contained in:
tildearrow 2022-09-20 01:03:44 -05:00
parent 3cb1571fb6
commit 1a84812a1d
2 changed files with 11 additions and 1 deletions

View File

@ -1114,6 +1114,11 @@ void DivPlatformYM2608::forceIns() {
}
for (int i=9; i<16; i++) {
chan[i].insChanged=true;
if (i>14) { // ADPCM-B
immWrite(0x10b,chan[i].outVol);
} else {
immWrite(0x18+(i-9),isMuted[i]?0:((chan[i].pan<<6)|chan[i].vol));
}
}
ay->forceIns();

View File

@ -472,8 +472,13 @@ void DivPlatformYM2608Ext::forceIns() {
chan[i].freqChanged=true;
}
}
for (int i=6; i<16; i++) {
for (int i=9; i<16; i++) {
chan[i].insChanged=true;
if (i>14) { // ADPCM-B
immWrite(0x10b,chan[i].outVol);
} else {
immWrite(0x18+(i-9),isMuted[i]?0:((chan[i].pan<<6)|chan[i].vol));
}
}
ay->forceIns();
ay->flushWrites();