interface IAudioHandle

An interface which represents an instance of an audio asset.

float Volume

The volume of the audio instance.

readonly bool IsPlaying

Whether the audio instance is still playing. When this is false, the audio instance has finished playing.

void Loop()

Plays this audio instance in a loop.

void Pause()

Pauses playback of this audio instance.

void Play()

Starts playing or resumes this audio instance once (not looped).

void Stop(bool immediate)

Stops playback of this audio instance, resetting the playback position to the start of the audio instance.

  • immediate (bool) – Wehether to stop the sound immediately.