Documentation

Audio::Play

Function

Voice@ Audio::Play(Sample@ sample, float gain = 1.0f)

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

Audio::Sample@ sample

float gain

Returns Audio::Voice@