READ THE RULES: Click here

Follow us on Facebook: :)

Need help with Metroid Prime Hunters: First Hunt's music

Get help on any and all audio formats, or chip in and help others!
Post Reply
User avatar
Posts: 14
Joined: Fri Jul 15, 2016 11:14 pm
Has thanked: 2 times
Been thanked: 2 times

Need help with Metroid Prime Hunters: First Hunt's music

Post by GordenF » Thu Jul 12, 2018 9:29 am

Hello everyone!

I'm trying to decode this game's music format, but it seems I've hit a roadblock.
Have some files first: I know I'm close, but what I have right now is a far (and bitcrushed to all hell) cry from what the file is supposed to sound like:
There has to be a way to get it to sound good, this is the only file in the game's filesystem that even contains music. The person who made the Youtube video has to have gotten the music from somewhere. :constipated:

I don't even know if that sox command was correct, I just know it outputs something that's identifiable as music.
I know it's probably some form of ADPCM, NDS devs love ADPCM. I looked up how ADPCM is usually decoded and it seems there are some state variables that can optionally be set using data from the file's header, but I can't find anything useful in there.

Here's all I know about the file header:
  • uint: file length
  • 4 null bytes
  • ushort: sample rate (11025)
  • 2 null bytes
  • always 00 04 01 00 00 00, possibly ADPCM-related
  • uint: file length, but shifted 2 bytes to the right for some reason and also sometimes off by one
Can anyone help me properly decode this?

Post Reply