Page 1 of 1
Madagascar 3 (Xbox 360) *.str
Posted: Thu Jul 23, 2015 4:52 pm
by vgripHE303
Hello! I need some help converting the .STR music files from Madagascar 3 (Xbox 360). The samples are included.
Re: Madagascar 3 (Xbox 360) *.str
Posted: Fri Jul 24, 2015 4:32 am
by brendan19
95% of the time Xbox 360 titles use XMA audio so that should be your first choice.
Channel count is found at 0x07 (02 - Two channels - Stereo)
Sample rate is found at 0x0A (44AC - 44100Hz)
XMA flag "FC01C001" can be found at 0x17F6
For this and other files from this game, delete everything 6 bytes before the XMA flag "FC01C001" so for this file, it should start from 0x17F0.
Then use Alpha23's XMA Transform Script to add a proper XMA header and then decode using ToWAV.
Don't forget to set the proper sample rate in the script as well

Re: Madagascar 3 (Xbox 360) *.str
Posted: Fri Jul 24, 2015 10:24 am
by vgripHE303
Thanks! I have an error though.
Re: Madagascar 3 (Xbox 360) *.str
Posted: Fri Jul 24, 2015 10:33 am
by brendan19
It should look like this before you add the XMA header using the script. I've highlighted the XMA flag as well.
EDIT: Ahh I see what you did. You need to delete all of the data from the start of the file up to the six bytes before the XMA flag like my screenshot shows.
Re: Madagascar 3 (Xbox 360) *.str
Posted: Fri Jul 24, 2015 10:44 am
by vgripHE303
Works perfectly. Thanks very much Xentax members are very helpful.