odin_decoder_create
Overview
Creates a new instance of an ODIN decoder with default settings used to process the remote media stream specified with the media_id parameter. The resulting decoder encapsulates an egress resampler using the given sample rate and channel layout.
Parameters
| Name | Type | Description |
|---|---|---|
media_id | uint16_t | The media ID to decode. |
sample_rate | uint32_t | The desired output sample rate (e.g. 48000). |
stereo | bool | True for stereo output, false for mono. |
out_decoder | struct OdinDecoder ** | Pointer to receive the new decoder handle. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |