Alchemy
Loading...
Searching...
No Matches

SequenceHeader Struct Reference

A song's header: its track count, priority and mode, its voices, and where each track's commands start. More...

#include <sound/audio_engine_types.h>

Data Fields

u8 trackCount
 At most 16; 0 in the empty songs.
u8 unk01
 0 in every song; ags-music refuses another block count.
u8 priority
 Becomes the player's priority.
u8 mode
 With bit 7 set, passed to AudioEngine_SetMode (bits 6..0 the reverb); ags-music's reverb field.
const struct SoundVoice * voices
 The voice table its tracks choose from.
const u8 * tracks [1]
 Each track's first command, trackCount of them.

Detailed Description

A song's header: its track count, priority and mode, its voices, and where each track's commands start.

Definition at line 339 of file audio_engine_types.h.

Field Documentation

◆ trackCount

u8 SequenceHeader::trackCount

At most 16; 0 in the empty songs.

Definition at line 340 of file audio_engine_types.h.

◆ unk01

u8 SequenceHeader::unk01

0 in every song; ags-music refuses another block count.

Definition at line 341 of file audio_engine_types.h.

◆ priority

u8 SequenceHeader::priority

Becomes the player's priority.

Definition at line 342 of file audio_engine_types.h.

Referenced by MusicPlayer_StartSong().

◆ mode

u8 SequenceHeader::mode

With bit 7 set, passed to AudioEngine_SetMode (bits 6..0 the reverb); ags-music's reverb field.

Definition at line 345 of file audio_engine_types.h.

Referenced by MusicPlayer_StartSong().

◆ voices

const struct SoundVoice* SequenceHeader::voices

The voice table its tracks choose from.

Definition at line 346 of file audio_engine_types.h.

Referenced by MusicPlayer_StartSong().

◆ tracks

const u8* SequenceHeader::tracks[1]

Each track's first command, trackCount of them.

Definition at line 347 of file audio_engine_types.h.

Referenced by MusicPlayer_StartSong().