odin_encoder_create_ex
Overview
Creates a new ODIN encoder instance for local media streams with extended codec configuration parameters.
Parameters
| Name | Type | Description |
|---|---|---|
sample_rate | uint32_t | The sample rate of the input audio. |
stereo | bool | True for stereo input. |
application_voip | bool | True to optimize for VoIP, false for generic audio. |
bitrate_kbps | uint32_t | Target bitrate in kbps. |
packet_loss_perc | uint8_t | Expected packet loss percentage (0-100). |
out_encoder | struct OdinEncoder ** | Pointer to receive the new encoder handle. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |