AGSC (File Format): Difference between revisions

>Aruki
>MrSinistar
Line 72: Line 72:
=== Pool ===
=== Pool ===


The Pool chunk denotes MusyX's '''SoundMacros''', small scripts that apply various effects on the sounds in the game. Each macro is composed of a header followed by a number of commands; each command specifies its type through a single-byte command ID, then specifies the parameters of that particular command, which vary.
The Pool chunk denotes MusyX's '''SoundMacros''', small scripts that apply various effects on the sounds in the game. Each macro is composed of a header followed by a number of commands; each command specifies its type through a single-byte command ID, then specifies the parameters of that particular command, which vary. The Pool chunk also has tables (for ADSR), keymaps, and layers, if applicable.
 
The first 10 bytes is the header of the Pool chunk.
 
{| class="wikitable"
! Offset
! Size
! Description
|-
| 0x0
| 4
| '''Header size''' (seems to always be 10)
|-
| 0x4
| 4
| '''Tables Offset'''
|-
| 0x8
| 4
| '''Keymaps Offset'''
|-
| 0xC
| 4
| '''Layers Offset'''
|-
| 0x10
| colspan=2 {{unknown|End of entry}}
|}


The header of each SoundMacro is eight bytes, and is structured as follows:
The header of each SoundMacro is eight bytes, and is structured as follows:
Anonymous user