Documentation

Audio

Namespace

Playback of sounds.

Represents an audio sample.

Represents a currently playing voice of audio.

Plays the given sample and returns the voice, immediately starting playback.

Returns Audio::Voice@

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!

Returns Audio::Voice@