Skip to main content

odin_resampler_create

Creates a new ODIN resampler instance. This is intended for situations where your audio pipeline doesn't support 48 kHz.

warning

One resampler should be used exclusively per audio stream.

Declaration
OdinResamplerHandle odin_resampler_create(uint32_t from_rate,
uint32_t to_rate,
uint16_t channel_count);

Parameters

from_rate

The input sample rate in Hz.

Declaration
uint32_t from_rate;

to_rate

The output sample rate in Hz.

Declaration
uint32_t to_rate;

channel_count

The number of channels in the audio data.

Declaration
uint16_t channel_count;

Returns

The handle of the created resampler instance. See

OdinResamplerHandle

for more information.

Declaration
OdinResamplerHandle