AGC2 adaptive digital controller config: new param

This CL adds and wires up a parameter (namely, adjacent speech
frames threshold) used in `AdaptiveDigitalGainApplier`.

Tested: bit-exactness verified with audioproc_f

Bug: webrtc:7494
Change-Id: I751cd91f08a6e98ee20f767c8df0ed121c8d4b68
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186049
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32264}
This commit is contained in:
Alessio Bazzica
2020-09-30 22:53:08 +02:00
committed by Commit Bot
parent 87b86acde9
commit 1309c77a48
3 changed files with 5 additions and 1 deletions

View File

@ -348,6 +348,7 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
LevelEstimator level_estimator = kRms;
bool use_saturation_protector = true;
float extra_saturation_margin_db = 2.f;
int gain_applier_adjacent_speech_frames_threshold = 1;
} adaptive_digital;
} gain_controller2;