AGSC (File Format): Difference between revisions
Jump to navigation
Jump to search
m
→Pool
>Aruki m (→Pool) |
>Aruki m (→Pool) |
||
Line 71: | Line 71: | ||
=== Pool === | === Pool === | ||
The Pool chunk denotes MusyX's | 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 number of pre-defined commands; each command specifies its type through a single-byte command ID, then specifies the parameters of that particular command, which vary. | ||
Each 4 bytes were originally little endian, but have been swapped to big endian in the AGSC files (despite not being longs). To read the data as originally formatted, every four bytes needs to be byte-swapped. | |||
Each command is structured as follows: | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 92: | Line 94: | ||
|} | |} | ||
The SoundMacro terminates when the END command is | The SoundMacro terminates when the END command is executed. The command ID for END is 0 and has null command arguments; the next SoundMacro begins after reading it. The entire Pool chunk is terminated by a value of 0xFFFFFFFF. | ||
These are the possible commands: | These are the possible commands: |