From 2b1525d4efbd0eea3a0e8ee8fb29b03390b38fed Mon Sep 17 00:00:00 2001 From: David Shadoff Date: Sun, 12 Nov 2023 13:36:46 -0500 Subject: [PATCH] Fix VU Meters ( #134 ) --- mednafen/src/pce/pcecd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mednafen/src/pce/pcecd.cpp b/mednafen/src/pce/pcecd.cpp index ad1e56d..5ab47e3 100644 --- a/mednafen/src/pce/pcecd.cpp +++ b/mednafen/src/pce/pcecd.cpp @@ -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