Set a positive initial gain in the Adaptive Digital GC.
If the adaptive gain is too low, we raise it slowly and only during speech. The CL gives better behavior at the start of a call. If the gain is too high, the fixed-digital limits it. The gain is also quickly reduced by the AdaptiveGainApplier. Bug: webrtc:7494 Change-Id: I683f1e3e463cddec2d91f6c7f15c73e744430034 Reviewed-on: https://webrtc-review.googlesource.com/71484 Commit-Queue: Alex Loiko <aleloi@webrtc.org> Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23053}
This commit is contained in:
@ -80,12 +80,6 @@ TEST(GainController2, Usage) {
|
||||
SetAudioBufferSamples(sample_value, &ab);
|
||||
AudioProcessing::Config::GainController2 config;
|
||||
|
||||
// Check that samples are not modified when the fixed gain is 0 dB.
|
||||
config.fixed_gain_db = 0.f;
|
||||
gain_controller2->ApplyConfig(config);
|
||||
gain_controller2->Process(&ab);
|
||||
EXPECT_EQ(ab.channels_f()[0][0], sample_value);
|
||||
|
||||
// Check that samples are amplified when the fixed gain is greater than 0 dB.
|
||||
config.fixed_gain_db = 5.f;
|
||||
gain_controller2->ApplyConfig(config);
|
||||
|
||||
Reference in New Issue
Block a user