odin_encoder_create
Overview
Creates a new ODIN encoder instance with default settings used to encode audio captured from local sources, such as a microphone. The encoder encapsulates an ingress resampler using the given sample rate and channel layout.
Parameters
| Name | Type | Description |
|---|---|---|
sample_rate | uint32_t | The sample rate of the input audio (e.g. 48000). |
stereo | bool | True for stereo input, false for mono. |
out_encoder | struct OdinEncoder ** | Pointer to receive the new encoder handle. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |