fix getPan() on VERA and MSM6258

This commit is contained in:
tildearrow 2023-08-24 03:39:05 -05:00
parent d240066df8
commit d36b43415f
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ DivMacroInt* DivPlatformMSM6258::getChanMacroInt(int ch) {
}
unsigned short DivPlatformMSM6258::getPan(int ch) {
return ((chan[ch].pan<<7)&1)|(chan[ch].pan&1);
return ((chan[ch].pan&2)<<7)|(chan[ch].pan&1);
}
DivDispatchOscBuffer* DivPlatformMSM6258::getOscBuffer(int ch) {

View file

@ -445,7 +445,7 @@ DivMacroInt* DivPlatformVERA::getChanMacroInt(int ch) {
}
unsigned short DivPlatformVERA::getPan(int ch) {
return ((chan[ch].pan<<7)&1)|(chan[ch].pan&1);
return ((chan[ch].pan&1)<<8)|((chan[ch].pan&2)>>1);
}
DivDispatchOscBuffer* DivPlatformVERA::getOscBuffer(int ch) {