Module ggbasm::audio

source ·
Expand description

Generate audio data.

Normally you only need to use the high level RomBuilder methods: RomBuilder::add_audio_data and RomBuilder::add_audio_player. So check those out first.

The audio player that plays the generated audio can be found at: audio_player.asm

Structs

Represents the state of channel 1
Represents the state of channel 2
Represents the state of channel 3
Represents the state of channel 4

Enums

Represents a line from the audio file
Represents a Note to be played by a channel

Functions

Processes Vec<AudioLine> into Vec<Instruction> that can be played by the audio player Despite returning Instruction, the only variants used are Db* and Label.
Parses &str into Vec<AudioLine> Returns Err if the text does not conform to the audio text format.