odin_decoder_create_ex
Overview
Creates a new instance of an ODIN decoder with extended configuration options. In addition to sample rate and channel layout, it allows customizing the jitter handling by specifying the number of packets to use in calculating the base jitter.
Parameters
| Name | Type | Description |
|---|---|---|
media_id | uint16_t | The media ID to decode. |
sample_rate | uint32_t | The desired output sample rate. |
stereo | bool | True for stereo output. |
base_jitter_packets | uint8_t | Base jitter in packet count (usually 20ms per packet). |
out_decoder | struct OdinDecoder ** | Pointer to receive the new decoder handle. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |