odin_encoder_set_event_callback
Overview
Registers a callback to receive encoder 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 |
|---|---|---|
encoder | struct OdinEncoder * | The encoder handle. |
filter | OdinAudioEvents | Bitmask of events to listen for. |
callback | OdinEncoderEventCallback | The callback function. |
user_data | void * | User data passed to the callback. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |