Listener interface for sound playback events.
Observer interface for receiving sound playback events.
Definition SoundEventListener.h:27
Definition SoundEvent.h:21
void AddListener(SoundEventListener *observer, bool priority=false)
Register a SoundEventListener instance.
void AddListenerOnError(void(*onAbort)(uint16_t id))
Register a static/free function to receive error events.
void AddListenerOnAbort(void(*onAbort)(uint16_t id))
Register a static/free function to receive abort events.
void RemoveListenerOnError(void(*onAbort)(uint16_t id))
Unregister a previously registered error callback.
void RemoveListener(SoundEventListener *observer)
Unregister a previously registered SoundEventListener instance.
void AddListenerOnComplete(void(*onComplete)(uint16_t id))
Register a static/free function to receive completion events.
void AddListenerOnBegin(void(*onComplete)(uint16_t id, float volume))
Register a static/free function to receive begin events.
void RemoveListenerOnBegin(void(*onComplete)(uint16_t id, float volume))
Unregister a previously registered begin callback.
void RemoveListenerOnComplete(void(*onComplete)(uint16_t id))
Unregister a previously registered completion callback.
void RemoveListenerOnAbort(void(*onAbort)(uint16_t id))
Unregister a previously registered abort callback.