Playstation 2 ADP audio. by peenie at 11:21 PM EDT on April 24, 2007
Are PS2 ADP files not the same as the Gamecube ones? I'm having trouble finding info about them; I don't mind digging into the data if I can get a good starting point. in_cube does -not- play them, at least in_cube 0.23 with the PS2 REZ ADP files.

Edit: I'm staring at the ADP decoding code from in_cube. The ADP files I have start with the 4 bytes "STMP", which doesn't pass the first frame test. I tried finding possible starts for the first frame and decoding from those, but it still doesn't work, the "q" value that ends up being read (when it decodes the sample in decode.c) is rarely 1,2,3,4. I don't know enough about it to know what's different about these files though and why all the values seem wrong when they're decoded.

edited 2:25 AM EDT April 25, 2007
by unknownfile at 11:50 AM EDT on April 25, 2007
*ahem*

Post a sample somewhere plzthx
by peenie at 12:22 PM EDT on April 25, 2007
Yeah... working on it... need to find web space that is free, doesn't require all sorts of annoying registration, and let's you upload any file type, and is actually -not- experiencing some sort of "technical difficulties" atm...

Status:
savefile.com: "saving not available atm"
xdrive registration error: "oops! sorry!" (thanks now wtf does -that- mean)
files-upload.com: looks like we might have a winner... (8kb/sec drumroll please...)

Bingo! http://files-upload.com/189994/adp.rar.html get it while supplies last. Sorry you'll have to deal with the 30 second countdown timer; just remember how much less that is than the 30 minutes of my life I just dedicated to uploading this. I love technology.

edited 12:57 PM EDT April 25, 2007
by hcs at 4:33 PM EDT on April 25, 2007
These ADP files each contain several ADX files. ADXtract or similar tools should be able to unpack them.
by peenie at 1:32 AM EDT on April 26, 2007
Hey thanks, that did the trick. I've written a faster version of ADXtract suitable for extracting ADX files from very large files or directly off a CD.

Source and binary: http://files-upload.com/191120/adXtract2.rar.html

It's all buffered and reads the input file sequentially without reading any bytes more than once, except in the rare case that the CRI signature offset points past the end of what's in the read buffer. Tested on Windows and Linux, output files compare byte for byte with version 0.0.

For a 191MB ISO file with 116 ADX files in it (after the entire file was already in the kernel's cache):

adXtract 0.0: 6 minutes, 42 seconds
adXtract 0.1: 5 seconds (13 seconds uncached)

For a 188MB file directly on a PS2 CD and not in the kernel file cache (24x CD-ROM read):

adXtract 0.0: 5 minutes, 16 seconds
adXtract 0.1: 1 minute, 49 seconds

So it's got a lot more speed (although the CD performance surprised me; in this case, driver caching and read-ahead are probably really efficient, and version 0.1 doing it's own buffering might just interfere -- who knows). Also it can take more than one source file on the command line. Maybe you or somebody will find it useful. I did not test it at all on a big-endian machine or on OSX. Also I forgot to add check for fread/fwrite error return on line 176; you might want to add that although it's not going to kill any children if it fails there.

Thanks again!

PS: You don't happen to know anything or have any docs related to PNB, PTM, PMP, or PPP data files on the PS2 do you? Or do you even know what they are? I have a bunch of them and I'm assuming at least some of them are audio data similar to mod files but I can't find any decent info. Trying to extract the audio samples from Rez. And no, none of them have ADX files in them, heh.

edited 2:07 AM EDT April 26, 2007
by hcs at 4:06 AM EDT on April 26, 2007
Thanks for the speed improvement, I've put your modification up on the in_cube page.
Those file extensions mean nothing to me.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source