![]() |
Doly C++ SDK v1.00
|
Functions | |
| void | AddListener (SoundEventListener *observer, bool priority=false) |
| Register a SoundEventListener instance. | |
| void | RemoveListener (SoundEventListener *observer) |
| Unregister a previously registered SoundEventListener instance. | |
| 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 | AddListenerOnComplete (void(*onComplete)(uint16_t id)) |
| Register a static/free function to receive completion events. | |
| void | RemoveListenerOnComplete (void(*onComplete)(uint16_t id)) |
| Unregister a previously registered completion callback. | |
| void | AddListenerOnAbort (void(*onAbort)(uint16_t id)) |
| Register a static/free function to receive abort events. | |
| void | RemoveListenerOnAbort (void(*onAbort)(uint16_t id)) |
| Unregister a previously registered abort callback. | |
| void | AddListenerOnError (void(*onAbort)(uint16_t id)) |
| Register a static/free function to receive error events. | |
| void | RemoveListenerOnError (void(*onAbort)(uint16_t id)) |
| Unregister a previously registered error callback. | |
| void SoundEvent::AddListener | ( | SoundEventListener * | observer, |
| bool | priority = false ) |
Register a SoundEventListener instance.
| observer | Listener object to register. |
| priority | If true, the listener is inserted with higher priority (called earlier). |
observer alive while it is registered. Unregister it before destruction. | void SoundEvent::AddListenerOnAbort | ( | void(* | onAbort )(uint16_t id) | ) |
Register a static/free function to receive abort events.
| onAbort | Callback invoked when playback is aborted. |
| void SoundEvent::AddListenerOnBegin | ( | void(* | onComplete )(uint16_t id, float volume) | ) |
Register a static/free function to receive begin events.
| onComplete | Callback invoked when playback begins. |
| void SoundEvent::AddListenerOnComplete | ( | void(* | onComplete )(uint16_t id) | ) |
Register a static/free function to receive completion events.
| onComplete | Callback invoked when playback completes. |
| void SoundEvent::AddListenerOnError | ( | void(* | onAbort )(uint16_t id) | ) |
Register a static/free function to receive error events.
| onAbort | Callback invoked when a playback error occurs. |
| void SoundEvent::RemoveListener | ( | SoundEventListener * | observer | ) |
Unregister a previously registered SoundEventListener instance.
| observer | Listener object to unregister. |
| void SoundEvent::RemoveListenerOnAbort | ( | void(* | onAbort )(uint16_t id) | ) |
Unregister a previously registered abort callback.
| onAbort | Callback to remove. |
| void SoundEvent::RemoveListenerOnBegin | ( | void(* | onComplete )(uint16_t id, float volume) | ) |
Unregister a previously registered begin callback.
| onComplete | Callback to remove. |
| void SoundEvent::RemoveListenerOnComplete | ( | void(* | onComplete )(uint16_t id) | ) |
Unregister a previously registered completion callback.
| onComplete | Callback to remove. |
| void SoundEvent::RemoveListenerOnError | ( | void(* | onAbort )(uint16_t id) | ) |
Unregister a previously registered error callback.
| onAbort | Callback to remove. |