[][src]Module ggbasm::audio

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

Channel1State

Represents the state of channel 1

Channel2State

Represents the state of channel 2

Channel3State

Represents the state of channel 3

Channel4State

Represents the state of channel 4

Enums

AudioLine

Represents a line from the audio file

Note

Represents a Note to be played by a channel

Functions

generate_audio_data

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.

parse_audio_text

Parses &str into Vec<AudioLine> Returns Err if the text does not conform to the audio text format.