AST (File Format): Difference between revisions
Jump to navigation
Jump to search
(Added links to Music page and tutorials) |
AwesomeTMC (talk | contribs) (Loop enabled is the unknown at 0xE) |
||
| Line 18: | Line 18: | ||
| 0x0C || UInt16 || Number of channels. | | 0x0C || UInt16 || Number of channels. | ||
|- | |- | ||
| 0x0E || UInt16 || | | 0x0E || UInt16 || Loop enabled? 0xFFFF = true. 0 = false. | ||
|- | |- | ||
| 0x10 || UInt32 || Sample rate. | | 0x10 || UInt32 || Sample rate. | ||
Revision as of 03:33, 17 March 2026
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 | Loop enabled? 0xFFFF = true. 0 = false. |
| 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