XCORE SDK
XCORE Software Development Kit
|
AGC configuration structure. More...
#include <agc_api.h>
AGC configuration structure.
This structure contains configuration settings that can be changed to alter the behaviour of the AGC instance.
Members with the "lc_" prefix are parameters for the Loss Control feature.
int agc_config_t::adapt |
Boolean to enable AGC adaption; if enabled, the gain to apply will adapt based on the peak of the input frame and the upper/lower threshold parameters.
int agc_config_t::adapt_on_vad |
Boolean to enable adaption based on the VAD meta-data; if enabled, adaption will always be performed when voice activity is detected. This must be disabled if the application doesn't have a VAD.
float_s32_t agc_config_t::gain |
The current gain to be applied, not including loss control.
float_s32_t agc_config_t::gain_dec |
Factor by which to decrease the gain during adaption.
float_s32_t agc_config_t::gain_inc |
Factor by which to increase the gain during adaption.
float_s32_t agc_config_t::lc_bg_power_gamma |
Gamma coefficient for estimating the power of the far-end background noise.
float_s32_t agc_config_t::lc_corr_threshold |
Threshold for far-end correlation above which to indicate far-end activity only.
int agc_config_t::lc_enabled |
Boolean to enable loss control. This must be disabled if the application doesn't have an AEC.
float_s32_t agc_config_t::lc_far_delta |
Delta multiplier used when only far-end activity is detected.
float_s32_t agc_config_t::lc_gain_double_talk |
Loss control gain to apply when double-talk is detected.
float_s32_t agc_config_t::lc_gain_max |
Loss control gain to apply when near-end activity only is detected.
float_s32_t agc_config_t::lc_gain_min |
Loss control gain to apply when far-end activity only is detected.
float_s32_t agc_config_t::lc_gain_silence |
Loss control gain to apply when silence is detected.
float_s32_t agc_config_t::lc_gamma_dec |
Factor by which to decrease the loss control gain when greater than target value.
float_s32_t agc_config_t::lc_gamma_inc |
Factor by which to increase the loss control gain when less than target value.
int agc_config_t::lc_n_frame_far |
Number of frames required to consider far-end audio active.
int agc_config_t::lc_n_frame_near |
Number of frames required to consider near-end audio active.
float_s32_t agc_config_t::lc_near_delta |
Delta multiplier used when only near-end activity is detected.
float_s32_t agc_config_t::lc_near_delta_far_active |
Delta multiplier used when both near-end and far-end activity is detected.
float_s32_t agc_config_t::lower_threshold |
The lower limit for the gained peak of the frame when adaption is enabled.
float_s32_t agc_config_t::max_gain |
The maximum gain allowed when adaption is enabled.
float_s32_t agc_config_t::min_gain |
The minimum gain allowed when adaption is enabled.
int agc_config_t::soft_clipping |
Boolean to enable soft-clipping of the output frame.
float_s32_t agc_config_t::upper_threshold |
The upper limit for the gained peak of the frame when adaption is enabled.