PCSX2 / HardwareTests

A collection of hardware tests that were used to validate the accuracy of PCSX2
MIT License
5 stars 4 forks source link

CDDA: Empasis Flags and sample rate. #1

Open weirdbeardgame opened 2 years ago

weirdbeardgame commented 2 years ago

CDDA audio have emphasis mode's that on a ps1 would usually be handled on the cd controller and then passed to the SPU.

https://psx-spx.consoledev.net/cdromdrive/#cdrom-subchannels - Audio pre emphasis and https://github.com/stenzek/duckstation/blob/82965f741e81e4d2f7e1b2abdc011e1f266bfe7f/src/common/cue_parser.h#L28 how duckstation lists them.

PS2CDDA mode cd audio is transferred from CDVD to IOP then processed and sent to the SPU. We don't know how the ps2 will handle those emphasis flags and could use a hardware test. Another test, are ps2 cdda games running at 44100hz sample rate?

refractionpcsx2 commented 2 years ago

I can almost guarantee the audio is 44100 because that's all cd audio is, ever.

As for the flags, they are likely irrelevant in ps2 mode if they're part of the cdrom controller since the cdrom controller does no cd audio decoding in ps2 mode, they are straight sector reads (there is also no way to set any cdvd emphasis flags in ps2 mode because they don't exist on the controller)

refractionpcsx2 commented 2 years ago

Just to back up the 44100 thing, you could mount say Dance Factory to your linux system and open the tracks in a cd audio player to check what the sample rate is.

But also consider the game also lets you use your own audio cd's which will 100% be 44100hz.