Ensure that AEC3 is not run in tandem with AEC2
AEC3 and AEC2 are separate submodules in APM. This CL ensures that AEC3 deactivates AEC2 if both are active at the same time. BUG=webrtc:6018 Review-Url: https://codereview.webrtc.org/2675863004 Cr-Commit-Position: refs/heads/master@{#16443}
This commit is contained in:
@ -1187,11 +1187,11 @@ int AudioProcessingImpl::ProcessCaptureStreamLocked() {
|
||||
|
||||
if (private_submodules_->echo_canceller3) {
|
||||
private_submodules_->echo_canceller3->ProcessCapture(capture_buffer, false);
|
||||
} else {
|
||||
RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessCaptureAudio(
|
||||
capture_buffer, stream_delay_ms()));
|
||||
}
|
||||
|
||||
RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessCaptureAudio(
|
||||
capture_buffer, stream_delay_ms()));
|
||||
|
||||
if (public_submodules_->echo_control_mobile->is_enabled() &&
|
||||
public_submodules_->noise_suppression->is_enabled()) {
|
||||
capture_buffer->CopyLowPassToReference();
|
||||
|
||||
Reference in New Issue
Block a user