AEC3: Correct the check for not reacting on initial pre-amp gain changes

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 <peah@webrtc.org>
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24938}
This commit is contained in:
Per Åhgren
2018-10-02 23:10:38 +02:00
committed by Commit Bot
parent 779366899a
commit e8a55693c2

View File

@ -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);