AGSC (File Format): Difference between revisions

m
>Aruki
>Aruki
Line 71: Line 71:
=== Pool ===
=== Pool ===


The Pool chunk denotes MusyX's "SoundMacros", small scripts that apply various effects and commands on the sounds in the game. The chunk first calls out a command ID then the parameters of that particular command, which varies.
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.


Every 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 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 read.  The command ID for END is 0 and has null command arguments; start the next SoundMacro after reading it. The entire chunk terminates when 0xFFFFFFFF is read.
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:
Anonymous user