Audio group


Classes

Audio::Sample Represents an audio file.

Audio::Voice Represents a currently playing voice of audio.

Global functions

Audio::Voice@ Audio::Play(Audio::Sample@ sample, float gain = 1.0f) Plays the given sample and returns the voice, immediately starting playback.

Audio::Voice@ Audio::Start(Audio::Sample@ sample) Starts the given sample and returns the voice, but does not immediately begin playback. Use this if you want to modify voice parameters before the first audio frames play. Note that if you don't let a sample play out, it will leak memory!