XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Jan 19, 2019 9:29 pm

All times are UTC + 1 hour

Forum rules

Please click here to view the forum rules

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Need help with Metroid Prime Hunters: First Hunt's music
PostPosted: Thu Jul 12, 2018 9:29 am 
User avatar

Joined: Fri Jul 15, 2016 11:14 pm
Posts: 14
Has thanked: 2 times
Have thanks: 2 times

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: https://www.youtube.com/watch?v=ZpeBEgH53Qs
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?

You can make the ads go away by registering

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group