Skip to content

Commit aedf8c0

Browse files
authored
Merge pull request #135 from dshadoff/Fix_VU_meter_data
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.
2 parents db819fe + 2b1525d commit aedf8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mednafen/src/pce/pcecd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,13 @@ MDFN_FASTCALL uint8 PCECD_Read(uint32 timestamp, uint32 A, int32 &next_event, co
580580
case 0x4: ret = _Port[4];
581581
break;
582582

583-
case 0x5: if(_Port[0x3] & 0x2)
583+
case 0x5: if((_Port[0x3] & 0x2) == 0)
584584
ret = RawPCMVolumeCache[1] & 0xff; // Right
585585
else
586586
ret = RawPCMVolumeCache[0] & 0xff; // Left
587587
break;
588588

589-
case 0x6: if(_Port[0x3] & 0x2)
589+
case 0x6: if((_Port[0x3] & 0x2) == 0)
590590
ret = ((uint16)RawPCMVolumeCache[1]) >> 8; // Right
591591
else
592592
ret = ((uint16)RawPCMVolumeCache[0]) >> 8; // Left

0 commit comments

Comments
 (0)