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}
This commit is contained in:
@ -61,12 +61,11 @@ TEST(GainController2, ToString) {
|
||||
config.fixed_gain_db = 5.f;
|
||||
|
||||
config.enabled = false;
|
||||
config.enable_limiter = true;
|
||||
EXPECT_EQ("{enabled: false, fixed_gain_dB: 5, enable_limiter: true}",
|
||||
EXPECT_EQ("{enabled: false, fixed_gain_dB: 5}",
|
||||
GainController2::ToString(config));
|
||||
|
||||
config.enabled = true;
|
||||
EXPECT_EQ("{enabled: true, fixed_gain_dB: 5, enable_limiter: true}",
|
||||
EXPECT_EQ("{enabled: true, fixed_gain_dB: 5}",
|
||||
GainController2::ToString(config));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user