Skip to main content

odin_pipeline_update_apm_playback

enum OdinError odin_pipeline_update_apm_playback(const struct OdinPipeline *pipeline,
uint32_t effect_id,
const float *samples,
uint32_t samples_count,
uint64_t delay_ms);

Overview

Updates the specified APM effect's sample buffer for processing the reverse (playback) audio stream. The provided samples must be interleaved float values in the range [-1, 1].

The delay parameter is used to align the reverse stream processing with the forward (capture) stream.

Parameters

NameTypeDescription
pipelineconst struct OdinPipeline *The pipeline handle.
effect_iduint32_tThe unique ID of the effect.
samplesconst float *Buffer of reverse stream samples.
samples_countuint32_tNumber of samples.
delay_msuint64_tEstimated delay in milliseconds.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.