Merge pull request #283 from laoo/lynx_panning_swap

Lynx panning swap
This commit is contained in:
tildearrow 2022-03-13 11:19:55 -05:00 committed by GitHub
commit b1b3f731f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -235,7 +235,7 @@ int DivPlatformLynx::dispatch(DivCommand c) {
}
break;
case DIV_CMD_PANNING:
chan[c.chan].pan=((c.value&0x0f)<<4)|((c.value&0xf0)>>4);
chan[c.chan].pan=c.value;
WRITE_ATTEN(c.chan,chan[c.chan].pan);
break;
case DIV_CMD_GET_VOLUME:

View file

@ -435,8 +435,8 @@ public:
case ATTENREG2:
case ATTENREG3:
mRegisterPool[8*4+idx] = value;
mAttenuationLeft[idx] = ( value & 0x0f ) << 2;
mAttenuationRight[idx] = ( value & 0xf0 ) >> 2;
mAttenuationRight[idx] = ( value & 0x0f ) << 2;
mAttenuationLeft[idx] = ( value & 0xf0 ) >> 2;
break;
case MPAN:
mPan = value;