From e8a55693c2b5912e1e4c6589db55fab4d6cf6b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Tue, 2 Oct 2018 23:10:38 +0200 Subject: [PATCH] AEC3: Correct the check for not reacting on initial pre-amp gain changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL corrects the incorrectly implemented check to avoid that AEC3 reacts on the initial pre-amp gain setting. TBR: devicentepena@webrtc.org Bug: webrtc:9805 Change-Id: I5decbf00a80457f24b8cd499c35720805ff9ccbc Reviewed-on: https://webrtc-review.googlesource.com/c/103360 Reviewed-by: Per Åhgren Reviewed-by: Jesus de Vicente Pena Commit-Queue: Per Åhgren Cr-Commit-Position: refs/heads/master@{#24938} --- modules/audio_processing/audio_processing_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_processing/audio_processing_impl.cc b/modules/audio_processing/audio_processing_impl.cc index b7dfdab108..56b961b583 100644 --- a/modules/audio_processing/audio_processing_impl.cc +++ b/modules/audio_processing/audio_processing_impl.cc @@ -1230,7 +1230,7 @@ int AudioProcessingImpl::ProcessCaptureStreamLocked() { capture_.echo_path_gain_change = capture_.echo_path_gain_change || (capture_.prev_pre_amp_gain != pre_amp_gain && - capture_.prev_pre_amp_gain < 0.f); + capture_.prev_pre_amp_gain >= 0.f); capture_.prev_pre_amp_gain = pre_amp_gain; } private_submodules_->echo_controller->AnalyzeCapture(capture_buffer);