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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user