Remove unused code in APM
- The injection of the AGC2 level estimator into `AgcManagerDirect` is not used anymore - `ExperimentalAgc::enabled_agc2_level_estimator` can also be removed - 3 ctors of `ExperimentalAgc` are unused - `AgcManagerDirectStandaloneTest::AgcMinMicLevelExperiment` can be split into separate unit tests (better code clarity) Bug: webrtc:7494 Change-Id: I5843147c38cf7cb5ee484b0a72fe13dcf363efaf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/202025 Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33027}
This commit is contained in:
committed by
Commit Bot
parent
111a3712e7
commit
42eef86c4f
@ -497,11 +497,6 @@ void AudioProcessingSimulator::ConfigureAudioProcessor() {
|
||||
apm_config.gain_controller1.analog_gain_controller.enabled =
|
||||
*settings_.use_analog_agc;
|
||||
}
|
||||
if (settings_.use_analog_agc_agc2_level_estimator) {
|
||||
apm_config.gain_controller1.analog_gain_controller
|
||||
.enable_agc2_level_estimator =
|
||||
*settings_.use_analog_agc_agc2_level_estimator;
|
||||
}
|
||||
if (settings_.analog_agc_disable_digital_adaptive) {
|
||||
apm_config.gain_controller1.analog_gain_controller.enable_digital_adaptive =
|
||||
*settings_.analog_agc_disable_digital_adaptive;
|
||||
|
||||
@ -106,7 +106,6 @@ struct SimulationSettings {
|
||||
absl::optional<bool> use_vad;
|
||||
absl::optional<bool> use_le;
|
||||
absl::optional<bool> use_all;
|
||||
absl::optional<bool> use_analog_agc_agc2_level_estimator;
|
||||
absl::optional<bool> analog_agc_disable_digital_adaptive;
|
||||
absl::optional<int> agc_mode;
|
||||
absl::optional<int> agc_target_level;
|
||||
|
||||
@ -124,11 +124,6 @@ ABSL_FLAG(int,
|
||||
kParameterNotSpecifiedValue,
|
||||
"Force-deactivate (1) digital adaptation in "
|
||||
"experimental AGC. Digital adaptation is active by default (0).");
|
||||
ABSL_FLAG(int,
|
||||
analog_agc_agc2_level_estimator,
|
||||
kParameterNotSpecifiedValue,
|
||||
"AGC2 level estimation"
|
||||
" in the experimental AGC. AGC1 level estimation is the default (0)");
|
||||
ABSL_FLAG(int,
|
||||
agc_mode,
|
||||
kParameterNotSpecifiedValue,
|
||||
@ -387,8 +382,6 @@ SimulationSettings CreateSettings() {
|
||||
SetSettingIfFlagSet(absl::GetFlag(FLAGS_le), &settings.use_le);
|
||||
SetSettingIfFlagSet(absl::GetFlag(FLAGS_analog_agc_disable_digital_adaptive),
|
||||
&settings.analog_agc_disable_digital_adaptive);
|
||||
SetSettingIfFlagSet(absl::GetFlag(FLAGS_analog_agc_agc2_level_estimator),
|
||||
&settings.use_analog_agc_agc2_level_estimator);
|
||||
SetSettingIfSpecified(absl::GetFlag(FLAGS_agc_mode), &settings.agc_mode);
|
||||
SetSettingIfSpecified(absl::GetFlag(FLAGS_agc_target_level),
|
||||
&settings.agc_target_level);
|
||||
|
||||
Reference in New Issue
Block a user