SoundUnit: implement panning

This commit is contained in:
tildearrow 2022-04-29 00:08:56 -05:00
parent 5567746e0b
commit abd42cbb03

View file

@ -270,7 +270,7 @@ int DivPlatformSoundUnit::dispatch(DivCommand c) {
break; break;
} }
case DIV_CMD_PANNING: { case DIV_CMD_PANNING: {
chan[c.chan].pan=c.value; chan[c.chan].pan=parent->convertPanSplitToLinear(c.value,4,254)-127;
chWrite(c.chan,0x03,chan[c.chan].pan); chWrite(c.chan,0x03,chan[c.chan].pan);
break; break;
} }