Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: webrtc/modules/audio_processing/aec3/echo_remover.cc

Issue 3003733002: Utilizing the AEC3 config struct for constants. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aec3/echo_remover.cc
diff --git a/webrtc/modules/audio_processing/aec3/echo_remover.cc b/webrtc/modules/audio_processing/aec3/echo_remover.cc
index a67a04e4e346e700d271cd5f7688fed0cac8267f..46ee8e2fc7b97ad06074a4d8b9310d857f8619eb 100644
--- a/webrtc/modules/audio_processing/aec3/echo_remover.cc
+++ b/webrtc/modules/audio_processing/aec3/echo_remover.cc
@@ -86,6 +86,7 @@ class EchoRemoverImpl final : public EchoRemover {
bool echo_leakage_detected_ = false;
AecState aec_state_;
EchoRemoverMetrics metrics_;
+ const AudioProcessing::Config::EchoCanceller3 config_;
RTC_DISALLOW_COPY_AND_ASSIGN(EchoRemoverImpl);
};
@@ -101,10 +102,12 @@ EchoRemoverImpl::EchoRemoverImpl(
optimization_(DetectOptimization()),
sample_rate_hz_(sample_rate_hz),
subtractor_(data_dumper_.get(), optimization_),
- suppression_gain_(optimization_),
+ suppression_gain_(config, optimization_),
cng_(optimization_),
suppression_filter_(sample_rate_hz_),
- aec_state_(0.8f) {
+ residual_echo_estimator_(config_),
hlundin-webrtc 2017/08/23 14:52:22 This is probably a bug. I guess you would be using
peah-webrtc 2017/08/24 07:00:52 Thanks!!! That definitely was a bug. Good find! I'
+ aec_state_(config),
+ config_(config) {
RTC_DCHECK(ValidFullBandRate(sample_rate_hz));
}

Powered by Google App Engine
This is Rietveld 408576698