AGSC (File Format): Difference between revisions

From Retro Modding Wiki
Jump to navigation Jump to search
>MrSinistar
No edit summary
>MrSinistar
Line 12: Line 12:


==== Header ====
==== Header ====
{| class="wikitable"
! Offset
! Size
! Description
|-
| 0x0
| 7
| '''Audio Directory'''. Always 'Audio/.' (0x417564696F2F00)
|-
| 0x7
| Varies
| '''Audio Subdirectory''' This tells us what sounds are in the file (for example, "metroid" or "weapons").  After the subdirectory name, there is also a 0x00 byte that follows for padding.
|-
|colspan=3 | '''Start of offset chunks table'''  Each chunk is in order, each one starting with its size value, 32 bytes.
|-
|colspan=3 | '''End of header''' After all the chunk offsets are listed, the header chunk terminates with 0xFFFFFFFF.
|}


=== AGSC (Metroid Prime 2) ===
=== AGSC (Metroid Prime 2) ===

Revision as of 09:57, 23 January 2015

AGSC is the sound format for Metroid Prime and Metroid Prime 2: Echoes. According to the debug maps in Metroid Prime, there are references to various "classes", with one of them controlling audio in the map, known as AudioGroupSet. So presumably, AGSC is an abbreviation for Audio Group Set Class.

The audio codec used for AGSC is the standard Gamecube DSP ADPCM codec, as described in the Gamecube SDK.

Format

There are two types of AGSC files: those found in Metroid Prime, and a slightly different version in Metroid Prime 2.

AGSC (Metroid Prime 1)

Header

Offset Size Description
0x0 7 Audio Directory. Always 'Audio/.' (0x417564696F2F00)
0x7 Varies Audio Subdirectory This tells us what sounds are in the file (for example, "metroid" or "weapons"). After the subdirectory name, there is also a 0x00 byte that follows for padding.
Start of offset chunks table Each chunk is in order, each one starting with its size value, 32 bytes.
End of header After all the chunk offsets are listed, the header chunk terminates with 0xFFFFFFFF.

AGSC (Metroid Prime 2)

Header