Anonymous

Changes

From Final Fantasy Inside

FF7/PSX/Sound/AKAO sequence

18 bytes added, 22:24, 31 October 2020
no edit summary
{
uint32_t mask; // represents bitmask of used channels in this song
uint32_t uint16_t start_offsets[num_channels]; // offsets to channel opcode data
};
int num_channels = 0;
while (int bit = 0; bit < 24; bit++) if ((info.mask & 0xFFFFFF) & (1 << bit)) != 0; bit++) num_channels++;
First there is 32-bit number (offset 0x10), which represents bitmask of used channels in this song.
After this bitmask, there is <channels count> offsets to channel opcode data counting from current offset. Each offsets is a relative offset based on the address *next to* the offset itself. (This is a general rule for early versions of AKAO to interpret relative offsets.)
 
=== Channel Commands [AKAO Opcodes] ===
|[[FF7/PSX/Sound/Opcodes/0xfe|0xFE]]
|Measure Number
|23|measure: byteshort
|
|-
17
edits