Class Handle

Audio handle, returned by the audio manager when playing audio.

class Handle

Audio handle, returned by the audio manager when playing audio.

This can be used to change settings after it started playing.

Internally, this will only store 4 bytes as a reference, so this object is fast and safe to copy and move.

If the audio is already stopped, the handle will be invalidated. You are still able to safely call methods on it, but they will be ignored.

A default constructed handle will be invalid by default.

Public Functions

Handle() = default
inline explicit Handle(uint16_t _slot, uint16_t _uuid)
void stop()

Stops the audio, if already stopped nothing will happen.

Note that stopping will make the handle invalid.

void setVolume(float volume)
void setSpeed(float speed)
bool isDone()