diff --git a/src/engine/platform/msm6258.cpp b/src/engine/platform/msm6258.cpp index 92d38a980..cb0ed05ed 100644 --- a/src/engine/platform/msm6258.cpp +++ b/src/engine/platform/msm6258.cpp @@ -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) { diff --git a/src/engine/platform/vera.cpp b/src/engine/platform/vera.cpp index 57d91b3b5..6d97c9c4e 100644 --- a/src/engine/platform/vera.cpp +++ b/src/engine/platform/vera.cpp @@ -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) {