AGC2 config operator= and unit tests update

Bug: webrtc:7494
Change-Id: I7957602d60658b84175a617f9c283ea44eafe57d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216260
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@google.com>
Cr-Commit-Position: refs/heads/master@{#33876}
This commit is contained in:
Alessio Bazzica
2021-04-29 16:17:49 +02:00
committed by WebRTC LUCI CQ
parent d66a60597d
commit a2efd15627
3 changed files with 82 additions and 88 deletions

View File

@ -357,7 +357,13 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
float gain_db = 0.0f;
} fixed_digital;
struct AdaptiveDigital {
bool operator==(const AdaptiveDigital& rhs) const;
bool operator!=(const AdaptiveDigital& rhs) const {
return !(*this == rhs);
}
bool enabled = false;
// Run the adaptive digital controller but the signal is not modified.
bool dry_run = false;
NoiseEstimator noise_estimator = kNoiseFloor;
int vad_reset_period_ms = 1500;