nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
audio_rate_control.h File Reference

Go to the source code of this file.

Data Structures

struct  audio_rate_control_ops
 Audio rate control's callback structure. More...
 
struct  audio_rate_control_ctx
 Audio rate control's private context. More...
 

Enumerations

enum  audio_rate_control_state { AUDIO_RATE_CONTROL_STATE_UNINITIALIZED = 0 , AUDIO_RATE_CONTROL_STATE_INITIALIZED }
 The state of the audio rate control. More...
 

Functions

int audio_rate_control_init (struct audio_rate_control_ctx *const ctx, struct audio_rate_control_imp_ctx *const imp_ctx, struct audio_rate_control_ops const *const imp_cb)
 Initialize an instance of the audio rate control module with the specified initial configuration.
 
int audio_rate_control_uninit (struct audio_rate_control_ctx *ctx)
 Uninitialize an audio rate control module.
 
int audio_rate_control_reset (struct audio_rate_control_ctx *const ctx)
 Reset an audio rate control module back to the last valid configuration.
 
int audio_rate_control_cfg_set (struct audio_rate_control_ctx *const ctx, struct audio_rate_control_cfg const *const cfg)
 Configure an audio rate control after it has been initialized.
 
int audio_rate_control_cfg_get (struct audio_rate_control_ctx const *const ctx, struct audio_rate_control_cfg *const cfg)
 Get the configuration of an audio rate control module.
 
int audio_rate_control_update (struct audio_rate_control_ctx *const ctx, void *const control_val_u)
 Update and get the new error between timestamps for an audio rate control module.