Metroid Prime AGSC by MrSinistar at 6:08 AM EDT on August 8, 2014
Hi all! Several people and myself are currently trying to figure out the Metroid Prime AGSC sound format. Looking at the sound file, there's four chunks of data: The audio header and sound table, a second chunk that I'm assuming is loop points, the third chunk is raw ADPCM data and the fourth chunk is possibly the offsets for the sounds and other unknown data.

I tried loading the files in VGMToolbox and the rendered GENH produce static results but if the sounds are mono and at 22050 hz, you can hear some of the sound effects albeit distorted. I tried using the GameCube ADP/DTK 4-bit ADPCM codec but it produces an unplayable GENH unless if I use stereo, which I know is incorrect.

Any help would be greatly appreciated!

edited 11:14 AM EDT August 8, 2014
by Parax at 6:22 AM EDT on August 8, 2014
If anyone feels like looking into it, all the AGSC files are contained in AudioGrp.pak, and can be dumped out using PakTool.

The files start with a directory and subdirectory name, then the four chunks of data MrSinistar mentioned. Each of those chunks begins with a 32-bit size value in bytes (not including the size value itself).

edited 11:32 AM EDT August 8, 2014
by bxaimc at 3:18 AM EDT on August 13, 2014
Um.....it's been supported directtly by vgmstream since 2008.
by MrSinistar at 7:52 AM EDT on August 14, 2014
No, this is a different file format, but uses same file extension. The AGSC format that vgmstream supports is for the title screen music in Metroid Prime 2, which, IIRC, is just a DSP stream.

The AGSC files that I'm talking about show up in the first Metroid Prime, but they are a bunch of ADPCM streams in one file.
by bxaimc at 3:20 AM EDT on August 16, 2014
Alright. So where are the files?
by MrSinistar at 8:48 AM EDT on August 16, 2014
AGSC Files (metroid and weapon sounds)

Here ya go, this zip has two AGSC files, one is all the Metroid sounds and the other has all the weapon sounds.

edited 1:54 PM EDT August 16, 2014
by MrSinistar at 11:32 AM EDT on August 28, 2014
Could anyone help please? If anyone needs more resources, please let me know.
by MrSinistar at 7:25 PM EDT on September 3, 2014
Here's what the test AGSC in MP1's files looks like:

00000000 00 00 00 01 54 65 73 74 00 02 CD 00 00 00 6C 00 ....Test..Í...l.
00000010 00 00 48 00 00 00 04 00 00 00 00 00 00 00 10 00 ..H.............
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 06 ..............X.
00000030 F8 00 00 00 00 00 38 00 10 7A C0 FF 00 64 0D 00 ø.....8..zÀÿ.d..
00000040 00 01 FF FF 00 7F 14 0B B8 01 FF 01 00 01 07 FF ..ÿÿ....¸.ÿ....ÿ
00000050 FF 00 00 8A D0 00 30 00 00 00 00 00 00 00 38 00 ÿ..ŠÐ.0.......8.
00000060 00 03 E8 FF 00 00 0F 0B B8 01 FF 01 00 00 07 0B ..èÿ....¸.ÿ.....
00000070 B8 00 00 00 00 00 11 00 00 00 00 00 00 00 00 00 ¸...............
00000080 00 00 00 FF FF FF FF 00 00 00 44 02 CD 00 01 00 ...ÿÿÿÿ...D.Í...
00000090 00 00 28 00 00 00 2C 00 00 00 2E 00 00 00 30 00 ..(...,.......0.
000000A0 00 00 32 00 00 00 34 00 00 00 00 00 00 00 00 06 ..2...4.........
000000B0 F8 FF FF FF FF FF FF FF FF FF FF 00 01 00 00 0E øÿÿÿÿÿÿÿÿÿÿ.....
000000C0 0B 06 F8 FF 0A 7F 40 3C 00 00 00 FF FF FF FF FF ..øÿ..@<...ÿÿÿÿÿ
000000D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
by Parax at 8:47 AM EDT on October 5, 2014
So for anyone interested, I ended up figuring out how to dump sound effects from the AGSC files from both Prime 1 and 2 yesterday. The format vgmstream supports is not a different format (at least not different from the other Prime 2 AGSCs - Prime 1 does indeed have a slightly different format), but the implementation is completely wrong - it assumes that there's only one sound in the file, when it's actually a group of sounds, and it hardcodes offsets to sound metadata that actually isn't in the same place every time; in fact, every sound in the file has its own metadata. So vgmstream's implementation only works on one file. That being said, it was useful as a reference regardless to help identify where the sound metadata was.

There's a download link to the tool I made to extract the sounds, as well as some detail on what I understand of how the format actually works, here.

edited 1:54 PM EDT October 5, 2014


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source