Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: .adp file format (Read 13792 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

.adp file format

Hello!

I found some .adp audio files on a game's CD (Omikron, The Nomad Soul). I like the music very much ingame and I would like to convert it to another format such as mp3. Unfortunately I cannot play this format in WMA nor Winamp. I couldn't even identify the format! I checked the file extension on FileExt.com and it is not listed as an audio type. So I'm looking for a program that would be able to detect the format of my files.

Thanks

.adp file format

Reply #1
Hi

First thing to do is having a look at the file with a hex editor.

.adp file format

Reply #2
Well, done and I couldn't find anything interesting like a tag field or such...

.adp file format

Reply #3
Try loading these .adp files on GAP:
http://bim.km.ru/gap/

From the extension, one might guess it is ADPCM.

Also, I suggest you check out the album "Hours" by David Bowie. It has all the tunes from Omikron.

.adp file format

Reply #4
Quote
Try loading these .adp files on GAP:
http://bim.km.ru/gap/

From the extension, one might guess it is ADPCM.

Also, I suggest you check out the album "Hours" by David Bowie. It has all the tunes from Omikron.

I tried to analyze several .adp files with GAP, but it couldn't detect the format. 
I also tought that this was ADPCM but as it would'nt play with anything...

.adp file format

Reply #5
Hate to state the obvious, but anyway...


Quote
... ADP Astound Dynamite file. ...


www.nortex.com/support/webhelp/a.htm, from my second Google query.




[edit] oops, included too much from google  [/edit]
Don't forget International Talk Like A Pirate Day! September the 19th!

.adp file format

Reply #6
Quote
Hate to state the obvious, but anyway...


Quote
... ADP Astound Dynamite file. ...


www.nortex.com/support/webhelp/a.htm, from my second Google query.




[edit] oops, included too much from google  [/edit]

Astound Dynamite appears to be a html editor.
Still no way to rip these tracks?

NumLOCK> why did you mention a HEX editor?


.adp file format

Reply #8
Quote
Hrmm. I don't have any of these .adp files to play around with, so I can't try this out, but give this link a shot.
http://www.gamingrevolution.com/files/ikon...t=ST;f=46;t=770

Thanks! This tool works but not perfectly:
It seems to recognize the file format and decompresses the music, but the resulting .wav sounds bad (though I recognize the music). After analyzing the file with Goldwave, I've found that the file is clipped (peak level is at 0dB), that's why it sounds so bad. I'm also unable to get decent stereo sound (I get stereo sound by setting "decompression algorithm" to "2", but the result is even worse).
After analyzing the .wav file with Goldwave I had the idea of opening the .adp files directly with Goldwave, and surprisingly, Goldwave read it.  But the result was the same: mono and clipped. In-game, not only the music plays perfectly, but it is also stereo.
I would like to know if there is a way to open the files without cutting everything off above the 0dB level (like when you decrease "preamp" in winamp's equaliser).

Some files from the game, for testing:
ZIP archive with 3 .adp files: here
You might also need mss32.dll for the program to work: mss32.dll.
A sample of the extracted music: here

.adp file format

Reply #9
Yea. Hmm. I tried messing with these files a bit, looks like that converter is one crash-happy little app. On most block sizes it simply crashes (Using W2k Pro SP4). I also tried various things using SoX and some other audio tools. Since I have no idea what the output is supposed to sound like, I'm not sure if I'm making any progress  .

Maybe this isn't ADPCM? To be honest, I don't know too much about this format. I thought Windows comes with an IMA/DVI/MS ADPCM codec? Are there other forms of ADPCM? I know there's also a Sun ADPCM, but I from what I know these formats are compatible with eachother.

.adp file format

Reply #10
Quote
Yea. Hmm. I tried messing with these files a bit, looks like that converter is one crash-happy little app. On most block sizes it simply crashes (Using W2k Pro SP4). I also tried various things using SoX and some other audio tools. Since I have no idea what the output is supposed to sound like, I'm not sure if I'm making any progress  .

That's strange, it never crashed for me (W98). Do you have mss32.dll installed in \Windows\System and/or in the executable's directory? Edit: What block sizes do you use? Anything between 1 and 1f gives me the same result. Above 1f, the sound becomes a long noise.

Quote
Maybe this isn't ADPCM? To be honest, I don't know too much about this format. I thought Windows comes with an IMA/DVI/MS ADPCM codec? Are there other forms of ADPCM? I know there's also a Sun ADPCM, but I from what I know these formats are compatible with eachother.


I think it is ADPCM, since the tool is especially written for dealing with ADPCM, and it is able to exctract the files in some way. Goldwave also gives the best results when I specify the files as being ADPCM. Quantic Dream may have slightly modified this format to make the ripping of their game's music more difficult.

Edit: added a sample of the ripped music.

.adp file format

Reply #11
Yes I have the mss32.dll in the executable's directory. Although I'm using a newer version of the dll (6.6a as opposed to the 5.0r), using your version of the dll doesn't make a difference though. It doesn't crash on 0x10, 0x24, or 0x48, but on others it crashes. Windows comes up with the "this app has generated an error, a log file is being created"  Not sure exactly what that's about.

I've also tried importing the file in GoldWave specifying "Vox / 4bit mono ADPCM @ 44100 KHz"... that seems to produce a "better" sounding sample.

Not sure if that's the right sample rate though, I've heard of ADPCM using wierd sample rates like 37.8KHz 

I'm kind of at a loss at the moment.

.adp file format

Reply #12
Hmm. I just listened to that mp3 sample. Which .adp does that correspond to? Looks like you've gotten a lot further than I have, all I get is static

.adp file format

Reply #13
It is adp number 3. Do you have static using GoldWave aswell? Experiment with adp #10, you should hear a little music (54 and 110 may be too loud to produce something listenable).

.adp file format

Reply #14
I'm at the office right now trying to replace a failed gigE module out of this extreme network switch. I should be back home in a bit and I'll give it a try.

How did you manage to open the .adp with Goldwave?

.adp file format

Reply #15
Quote
I'm at the office right now trying to replace a failed gigE module out of this extreme network switch. I should be back home in a bit and I'll give it a try.

How did you manage to open the .adp with Goldwave?

I just opened it like any other file, then it asked for the format. I specified "Vox / ADPCM 4 bit mono" just as you did.

.adp file format

Reply #16
Hmm. I did most of my testing with #10, all I got out of it was a horribly staticy sounding sample that could maybe have been some sort of sound effect, but it definately wasn't music. Anyway, I'm about to drive back home, I'll give it another shot. Maybe there's someway to hardlimit the volume when importing.

.adp file format

Reply #17
Quote
Maybe there's someway to hardlimit the volume when importing.

That's exactly what we need: a program that would read the entire sound data, not only under the 0dB level.

I discovered that most of the block sizes ending with 8 produce different sound. Other block sizes produce always the same sound, but 28, 38, 48, 58 etc. all produce different sound from each other. Maybe that's not so important, but it's worth mentioning.

.adp file format

Reply #18
Hmm... the kind of distortion discribed sounds like what happens when you try to listen to 8-bit stereo as 16-bit mono.  Perhaps you should save the decoded file as a 16-bit mono WAVE file and then hex edit it to 8-bit stereo.

.adp file format

Reply #19
Erhm. Aren't ADPCM files 2,3,4 or 5 bit? 
Goldwave doesn't change the resolution.
Edit: Nevermind. Looks like G.722 for example does 8 bit as well.
Edit: Nevermind, didn't read the above post correctly

This unpsnd tool changes the resolution to 16 bits. The blocksize seems to affect the length of the resulting PCM file. Ie: 44100/0x08/mono produces a 770kiB file, whereas 44100/0x14/mono produces a 1130kiB file.

Edit: Just thought about something. The bit stuff could be the cause of the clipping and distortion. A signed 16 bit PCM file reaches digital full scale at -32768, 8 bit at -128. So say that this file actually isn't 4 bit, but 8 bit (or even 16), and we're treating it as a 4 bit file (what's the full scale there?), most of the audio content gets lopped off.  Not sure if I'm making sense here. Appearently G.722 ADPCM files are 8 bit?

Edit2: Wierd results with the hex editing. I converted 10.adp (44100/0x08/mono) to a PCM file. The result is a 16bit mono file. I opened this up in a hex editor and changed it to 8 bit stereo. Oddly enough the static on both channels is different. So the produced mono file actually has different content in both channels. 

.adp file format

Reply #20
Quote
Edit: Just thought about something. The bit stuff could be the cause of the clipping and distortion. A signed 16 bit PCM file reaches digital full scale at -32768, 8 bit at -128. So say that this file actually isn't 4 bit, but 8 bit (or even 16), and we're treating it as a 4 bit file (what's the full scale there?), most of the audio content gets lopped off.  Not sure if I'm making sense here. Appearently G.722 ADPCM files are 8 bit?

Edit2: Wierd results with the hex editing. I converted 10.adp (44100/0x08/mono) to a PCM file. The result is a 16bit mono file. I opened this up in a hex editor and changed it to 8 bit stereo. Oddly enough the static on both channels is different. So the produced mono file actually has different content in both channels. 

Interesting. Can you tell me how to change the resolution of a .wav file with a hex editor?
Maybe is there a way to force Goldwave (or another program) to read the .adp as 8-bit stereo?

.adp file format

Reply #21
Yea, it's pretty simple. The number of channels starts at Byte 22 and is 2 Bytes long; "01 00" is mono and "02 00" is stereo. The number of bits are specified starting at Byte 34, also two Bytes long; "10 00" is 16 bit and "08 00" is 8 bit.

Note: this is assuming a standard MS PCM wave file (RIFF).

.adp file format

Reply #22
Quote
Yea, it's pretty simple. The number of channels starts at Byte 22 and is 2 Bytes long; "01 00" is mono and "02 00" is stereo. The number of bits are specified starting at Byte 34, also two Bytes long; "10 00" is 16 bit and "08 00" is 8 bit.

Note: this is assuming a standard MS PCM wave file (RIFF).

Wait. Does it make any sense to convert the .wav to 8-bit? I mean the .wav probably doesn't contains the data we need anymore, after it has been extracted with unpsnd.exe.

.adp file format

Reply #23
No it doesn't make much sense. But it is still interesting to see that the 16 bit mono file that the conversion tool produces is actually stereo 

.adp file format

Reply #24
I need to read my files as 16-bit, that's all. Is there a way to do that?