AST (File Format)
AST files are audio streams found in several JAudio2 games, including Super Mario Galaxy and Super Mario Galaxy 2. Both games store their AST files in the AudioRes/Stream
directory.
For a comprehensive list linking AST files to the Galaxy they're used in, check the List of Music page.
Header
AST file header, 0x40 bytes in length.
Offset | Type | Description |
---|---|---|
0x00 | String | File magic. STRM in ASCII. |
0x04 | UInt32 | Size of all sound blocks. File Size - Header Length |
0x08 | UInt16 | Audio format. 0 = ADPCM, 1 = PCM16 |
0x0A | UInt16 | Bit depth. |
0x0C | UInt16 | Number of channels. |
0x0E | UInt16 | Unknown. |
0x10 | UInt32 | Sample rate. |
0x14 | UInt32 | Total sample count. |
0x18 | UInt32 | Loop start in samples. |
0x1C | UInt32 | Loop end in samples. |
0x20 | UInt32 | Unknown. Seems to be the size of the first block. |
0x24 | UInt32 | Unknown. Always 0. |
0x28 | UInt32 | Unknown. Always 0x7F000000. |
0x2C | Byte | Always 0. Likely padding. |
0x40 | End of Header. |
BLCK
AST file contain multiple BLCK sections, each containing sound data.
Offset | Type | Description |
---|---|---|
0x00 | String | Block magic. BLCK in ASCII. |
0x04 | UInt32 | Block size. |
0x08 | Byte | Unknown. Likely padding for alignment. |
0x20 | Byte | Sound data. |
Tools
Tutorials
Luma's Workshop - Changing Background Music
Luma's Workshop - Importing New Music Tracks