Skip to content

Commit

Permalink
Merge pull request #135 from dshadoff/Fix_VU_meter_data
Browse files Browse the repository at this point in the history
While music playback was sent to correct channels, the CD_PCMREAD data was not correct, so the VU meters showed activity on the wrong channels.
  • Loading branch information
pceDev16 authored Nov 18, 2023
2 parents db819fe + 2b1525d commit aedf8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mednafen/src/pce/pcecd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,13 @@ MDFN_FASTCALL uint8 PCECD_Read(uint32 timestamp, uint32 A, int32 &next_event, co
case 0x4: ret = _Port[4];
break;

case 0x5: if(_Port[0x3] & 0x2)
case 0x5: if((_Port[0x3] & 0x2) == 0)
ret = RawPCMVolumeCache[1] & 0xff; // Right
else
ret = RawPCMVolumeCache[0] & 0xff; // Left
break;

case 0x6: if(_Port[0x3] & 0x2)
case 0x6: if((_Port[0x3] & 0x2) == 0)
ret = ((uint16)RawPCMVolumeCache[1]) >> 8; // Right
else
ret = ((uint16)RawPCMVolumeCache[0]) >> 8; // Left
Expand Down

0 comments on commit aedf8c0

Please sign in to comment.