I'm looking to decode the Ubisoft MPEG files found in Tonic Trouble, and I'd be forever grateful if anyone could help. I've posted this on various forums without any help, so I'm hoping I'll have some luck here.
Here are some examples of stereo Ubisoft MPEG files: https://app.box.com/s/4a8u0kbfe1izlewedqjl
Here are 3 examples of mono Ubisoft MPEG files (they're voice tracks): https://app.box.com/s/qypjqe1pypd9dtmncern
It seems that much like normal MPEG audio, stereo files have 1 frame for left channel, 1 frame for right channel, and then repeat.
The tracks seem to be 16-bit 44100Hz files, and from what I've found, the format is a bit like this:
Code: Select all
0x4 - the amount of samples of the audio track. Seems to be used only for loop length.
0x4 - "2RUS" header for stereo, "1RUS" header for mono
0x??- frame header, starting with at least 8 "on" bits (11111111). This start is just like MPEG, but the rest of the header isn't...
[ frame ]
0x?? - frame header, seems to be padded to nibble level (as in, there can be 4 "on" bits at the end of one byte and 4 at the beginning of the following byte)
[ frame ]
etc.
Many thanks,
Droolie.