odin_decoder_set_event_callback
Overview
Registers a callback to receive decoder audio events. The filter determines which event types will trigger the callback, allowing selective handling. Any previously registered callback is replaced.
Parameters
| Name | Type | Description |
|---|---|---|
decoder | struct OdinDecoder * | The decoder handle. |
filter | OdinAudioEvents | Bitmask of events to listen for. |
callback | OdinDecoderEventCallback | The callback function. |
user_data | void * | User data passed to the callback. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |