From 3815655541b2d55972a45f09036e78497201249a Mon Sep 17 00:00:00 2001 From: minyue Date: Tue, 3 May 2016 14:42:41 -0700 Subject: [PATCH] Change aggregation window of aecDivergentFilterFraction to 1 second. BUG= Review-Url: https://codereview.webrtc.org/1942183002 Cr-Commit-Position: refs/heads/master@{#12617} --- webrtc/modules/audio_processing/aec/aec_core.cc | 4 ++-- webrtc/modules/audio_processing/include/audio_processing.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/modules/audio_processing/aec/aec_core.cc b/webrtc/modules/audio_processing/aec/aec_core.cc index 5da8b136c1..955bc9a4a6 100644 --- a/webrtc/modules/audio_processing/aec/aec_core.cc +++ b/webrtc/modules/audio_processing/aec/aec_core.cc @@ -47,8 +47,8 @@ static const int kDelayMetricsAggregationWindow = 1250; // 5 seconds at 16 kHz. // Divergence metric is based on audio level, which gets updated every // |kCountLen + 1| * 10 milliseconds. Divergence metric takes the statistics of // |kDivergentFilterFractionAggregationWindowSize| samples. Current value -// corresponds to 0.5 seconds at 16 kHz. -static const int kDivergentFilterFractionAggregationWindowSize = 25; +// corresponds to 1 second at 16 kHz. +static const int kDivergentFilterFractionAggregationWindowSize = 50; // Quantities to control H band scaling for SWB input static const float cnScaleHband = 0.4f; // scale for comfort noise in H band. diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h index 0c93a984b2..24be9de262 100644 --- a/webrtc/modules/audio_processing/include/audio_processing.h +++ b/webrtc/modules/audio_processing/include/audio_processing.h @@ -685,7 +685,7 @@ class EchoCancellation { // (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a) AudioProcessing::Statistic a_nlp; - // Fraction of time that the AEC linear filter is divergent, in a 0.5-second + // Fraction of time that the AEC linear filter is divergent, in a 1-second // non-overlapped aggregation window. float divergent_filter_fraction; };