SoundUnit: fix getPan() again

This commit is contained in:
tildearrow 2023-09-11 01:50:52 -05:00
parent 7a6daba071
commit d687edf16a

View file

@ -459,7 +459,7 @@ DivMacroInt* DivPlatformSoundUnit::getChanMacroInt(int ch) {
}
unsigned short DivPlatformSoundUnit::getPan(int ch) {
return parent->convertPanLinearToSplit(chan[ch].pan^0x80,8,255);
return parent->convertPanLinearToSplit(chan[ch].pan+127,8,255);
}
DivDispatchOscBuffer* DivPlatformSoundUnit::getOscBuffer(int ch) {