Hooked up the control of the adaptive AGC2 mode in audioproc_f
This CL adds the ability to toggle the AGC2 adaptive digital mode in audioproc_f Bug: webrtc:5298 Change-Id: If1567d8c87f88992dff89253edb293a56cee0a73 Reviewed-on: https://webrtc-review.googlesource.com/c/103361 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24954}
This commit is contained in:
@ -918,6 +918,10 @@ void AudioProcessingSimulator::CreateAudioProcessor() {
|
||||
if (settings_.use_agc2) {
|
||||
apm_config.gain_controller2.enabled = *settings_.use_agc2;
|
||||
apm_config.gain_controller2.fixed_gain_db = settings_.agc2_fixed_gain_db;
|
||||
if (settings_.agc2_use_adaptive_gain) {
|
||||
apm_config.gain_controller2.adaptive_digital_mode =
|
||||
*settings_.agc2_use_adaptive_gain;
|
||||
}
|
||||
}
|
||||
if (settings_.use_pre_amplifier) {
|
||||
apm_config.pre_amplifier.enabled = *settings_.use_pre_amplifier;
|
||||
|
||||
Reference in New Issue
Block a user