Skip to content

Commit

Permalink
Fix VU Meters ( #134 )
Browse files Browse the repository at this point in the history
  • Loading branch information
dshadoff committed Nov 12, 2023
1 parent 9d759e9 commit 2b1525d
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 2b1525d

Please sign in to comment.