SoundUnit: implement panning

This commit is contained in:
tildearrow 2022-04-29 00:08:56 -05:00
parent 5567746e0b
commit abd42cbb03
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ int DivPlatformSoundUnit::dispatch(DivCommand c) {
break;
}
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);
break;
}