Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 2675863004: Ensure that AEC3 is not run in tandem with AEC2 (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 1180
1181 // Ensure that the stream delay was set before the call to the 1181 // Ensure that the stream delay was set before the call to the
1182 // AEC ProcessCaptureAudio function. 1182 // AEC ProcessCaptureAudio function.
1183 if (public_submodules_->echo_cancellation->is_enabled() && 1183 if (public_submodules_->echo_cancellation->is_enabled() &&
1184 !was_stream_delay_set()) { 1184 !was_stream_delay_set()) {
1185 return AudioProcessing::kStreamParameterNotSetError; 1185 return AudioProcessing::kStreamParameterNotSetError;
1186 } 1186 }
1187 1187
1188 if (private_submodules_->echo_canceller3) { 1188 if (private_submodules_->echo_canceller3) {
1189 private_submodules_->echo_canceller3->ProcessCapture(capture_buffer, false); 1189 private_submodules_->echo_canceller3->ProcessCapture(capture_buffer, false);
1190 } else {
1191 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessCaptureAudio(
1192 capture_buffer, stream_delay_ms()));
1190 } 1193 }
1191 1194
1192 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessCaptureAudio(
aleloi 2017/02/03 15:24:11 Did we rely on that public_submodules_->echo_cance
peah-webrtc 2017/02/04 22:57:28 Yes we did.
1193 capture_buffer, stream_delay_ms()));
1194
1195 if (public_submodules_->echo_control_mobile->is_enabled() && 1195 if (public_submodules_->echo_control_mobile->is_enabled() &&
1196 public_submodules_->noise_suppression->is_enabled()) { 1196 public_submodules_->noise_suppression->is_enabled()) {
1197 capture_buffer->CopyLowPassToReference(); 1197 capture_buffer->CopyLowPassToReference();
1198 } 1198 }
1199 public_submodules_->noise_suppression->ProcessCaptureAudio(capture_buffer); 1199 public_submodules_->noise_suppression->ProcessCaptureAudio(capture_buffer);
1200 #if WEBRTC_INTELLIGIBILITY_ENHANCER 1200 #if WEBRTC_INTELLIGIBILITY_ENHANCER
1201 if (capture_nonlocked_.intelligibility_enabled) { 1201 if (capture_nonlocked_.intelligibility_enabled) {
1202 RTC_DCHECK(public_submodules_->noise_suppression->is_enabled()); 1202 RTC_DCHECK(public_submodules_->noise_suppression->is_enabled());
1203 int gain_db = public_submodules_->gain_control->is_enabled() ? 1203 int gain_db = public_submodules_->gain_control->is_enabled() ?
1204 public_submodules_->gain_control->compression_gain_db() : 1204 public_submodules_->gain_control->compression_gain_db() :
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 capture_processing_format(kSampleRate16kHz), 1986 capture_processing_format(kSampleRate16kHz),
1987 split_rate(kSampleRate16kHz) {} 1987 split_rate(kSampleRate16kHz) {}
1988 1988
1989 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; 1989 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default;
1990 1990
1991 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; 1991 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default;
1992 1992
1993 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; 1993 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default;
1994 1994
1995 } // namespace webrtc 1995 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698