notaz / pcsx_rearmed

ARM optimized PCSX fork
GNU General Public License v2.0
383 stars 207 forks source link

CDDA plays silently with CHD images #328

Closed vaguerant closed 8 months ago

vaguerant commented 8 months ago

PCSX-ReARMed Version

r23l 2636d7c

Your device

PC

Operating System of your device

Windows

CPU architecture

x86-64 (64bit Intel, AMD, etc.)

Issue description

There seems to be a recent regression which has broken CDDA when played from a CHD image. Audio behaves as if it's playing (e.g. the BIOS CD player correctly detects track lengths), but the sound is not audible. The issue was not occurring in c4b8cca from ~2 weeks ago.

Step-by-step reproduction and logs

  1. Convert any title which uses CDDA to CHD Pac-Man World (USA) (Demo) from Redump is a good test case, with a CDDA title screen theme
  2. Run that game in pcsx-reARMed
  3. Reach an area where CDDA is intended to play
  4. Crickets

Log

I don't see anything particularly useful in the log other than that it does correctly identify the CDDA tracks:

[libretro INFO] chd: TRACK:1 TYPE:MODE2_RAW SUBTYPE:NONE FRAMES:5508 PREGAP:0 PGTYPE:MODE1 PGSUB:NONE POSTGAP:0
[libretro INFO] chd: TRACK:2 TYPE:AUDIO SUBTYPE:NONE FRAMES:3818 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0
[libretro INFO] chd: TRACK:3 TYPE:AUDIO SUBTYPE:NONE FRAMES:6907 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0
[libretro INFO] chd: TRACK:4 TYPE:AUDIO SUBTYPE:NONE FRAMES:7068 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0
[libretro INFO] chd: TRACK:5 TYPE:AUDIO SUBTYPE:NONE FRAMES:4727 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0
[libretro INFO] chd: TRACK:6 TYPE:AUDIO SUBTYPE:NONE FRAMES:11906 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0
[libretro INFO] Loaded CD Image: C:\Games\PlayStation\ROMs\Pac-Man World (USA) (Demo).chd[+chd].

pacman-silent.log

Additional notes

This is not directly related to #327, another CDDA issue. In that issue, I was using a cue+wav image, which played back without issue on the same commit of pcsx-reARMed.