Make possible to activate adaptive AGC2 in the APM.
We update the configuration settings for AGC2. We also update their
effects. Now, 'gain_controller2.enable=true' means 'first run Adaptive
AGC2; then run AGC2 limiter'.
Previously, only the AGC2 limiter was implemented. To run that, one
had to set both 'gain_controller2.enable=true' and
'gain_controller2.enable_limiter=true'.
This setting also enables adaptive AGC2 in the test tool 'audioproc_f'.
Bug: webrtc:7494
Change-Id: I0d5dfe443f2cdc0ecf3aa4054442dab6276d284d
Reviewed-on: https://webrtc-review.googlesource.com/64990
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22669}
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h
index d31174a..05eef5e 100644
--- a/modules/audio_processing/include/audio_processing.h
+++ b/modules/audio_processing/include/audio_processing.h
@@ -270,14 +270,13 @@
bool enabled = false;
} high_pass_filter;
- // Enables the next generation AGC functionality. This feature replaces the
- // standard methods of gain control in the previous AGC.
- // The functionality is not yet activated in the code and turning this on
- // does not yet have the desired behavior.
+ // Enables the next generation AGC functionality. This feature
+ // replaces the standard methods of gain control in the previous
+ // AGC. This functionality is currently only partially
+ // implemented.
struct GainController2 {
bool enabled = false;
float fixed_gain_db = 0.f;
- bool enable_limiter = true;
} gain_controller2;
// Explicit copy assignment implementation to avoid issues with memory