Resident Evil 4 ADX files [PS2]

Codecs, formats, encoding/decoding of game audio, video and music
Kanas6950
Posts: 17
Joined: Tue Jan 16, 2018 9:07 am

Resident Evil 4 ADX files [PS2]

Post by Kanas6950 »

These are playable in Foobar2000 with vgm stream component installed ofcourse
But I'm confused, Should I convert it to MP3 or FLAC/WAV
Is this file lossy or lossless?

https://jumpshare.com/v/dvpqq5moILmJRolRJnQn

Duration : 1:00.060 (2 882 880 samples)
Sample rate : 48000 Hz
Channels : 2
Bits per sample : 16
Bitrate : 432 kbps
Codec : CRI ADX 4-bit ADPCM
Encoding : lossless
<INTERLEAVE> : 0x12
<LAYOUT> : interleave
<METADATA_SOURCE> : CRI ADX header type 04
<STREAM_TOTAL_SAMPLES> : 2882912
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Resident Evil 4 ADX files [PS2]

Post by bxaimc »

It’s lossy. It’s only reporting lossless because it’s hardcoded (idk why). Eventually I’ll fix it to report a more accurate reading.
Kanas6950
Posts: 17
Joined: Tue Jan 16, 2018 9:07 am

Re: Resident Evil 4 ADX files [PS2]

Post by Kanas6950 »

Thank You
And this is another file from God of War 3

https://jumpshare.com/v/Sfdv9IirZmgIbKXHqNIe

Duration : 2:52.077 (8 259 696 samples)
Sample rate : 48000 Hz
Channels : 2
Bits per sample : 16
Bitrate : 438 kbps
Codec : Playstation 4-bit ADPCM
Encoding : lossless
<INTERLEAVE> : 0x10
<LAYOUT> : interleave
<METADATA_SOURCE> : Sony XVAG header
<STREAM_TOTAL_SAMPLES> : 8259720
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Resident Evil 4 ADX files [PS2]

Post by bxaimc »

The general rule of thumb is ADPCM = lossy. By default, foo_input_vgmstream reports lossless on every supported file type ragardles if it’s accurate or not since it’s hardcoded. Like I said, I’ll have to fix that at some point unless my colleagues get to it before I do.