implement panning macro

except for QSound
This commit is contained in:
tildearrow 2022-04-17 14:15:57 -05:00
parent 5e7a4eae16
commit fc8a130c71
13 changed files with 121 additions and 5 deletions

View file

@ -192,6 +192,11 @@ void DivPlatformGB::tick(bool sysTick) {
if (!chan[i].keyOff) chan[i].keyOn=true;
}
}
if (chan[i].std.panL.had) {
lastPan&=~(0x11<<i);
lastPan|=((chan[i].std.panL.val&1)<<i)|((chan[i].std.panL.val&2)<<(i+3));
rWrite(0x25,procMute());
}
if (chan[i].std.pitch.had) {
chan[i].freqChanged=true;
}