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

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

Issue 2320833002: Compensate for the IntelligibilityEnhancer processing delay in high bands (Closed)
Patch Set: Created 4 years, 3 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
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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 969
970 int AudioProcessingImpl::ProcessReverseStreamLocked() { 970 int AudioProcessingImpl::ProcessReverseStreamLocked() {
971 AudioBuffer* ra = render_.render_audio.get(); // For brevity. 971 AudioBuffer* ra = render_.render_audio.get(); // For brevity.
972 if (rev_analysis_needed()) { 972 if (rev_analysis_needed()) {
973 ra->SplitIntoFrequencyBands(); 973 ra->SplitIntoFrequencyBands();
974 } 974 }
975 975
976 #if WEBRTC_INTELLIGIBILITY_ENHANCER 976 #if WEBRTC_INTELLIGIBILITY_ENHANCER
977 if (capture_nonlocked_.intelligibility_enabled) { 977 if (capture_nonlocked_.intelligibility_enabled) {
978 public_submodules_->intelligibility_enhancer->ProcessRenderAudio( 978 public_submodules_->intelligibility_enhancer->ProcessRenderAudio(
979 ra->split_channels_f(kBand0To8kHz), capture_nonlocked_.split_rate, 979 ra, capture_nonlocked_.split_rate);
980 ra->num_channels());
981 } 980 }
982 #endif 981 #endif
983 982
984 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessRenderAudio(ra)); 983 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessRenderAudio(ra));
985 RETURN_ON_ERR( 984 RETURN_ON_ERR(
986 public_submodules_->echo_control_mobile->ProcessRenderAudio(ra)); 985 public_submodules_->echo_control_mobile->ProcessRenderAudio(ra));
987 if (!constants_.use_experimental_agc) { 986 if (!constants_.use_experimental_agc) {
988 RETURN_ON_ERR(public_submodules_->gain_control->ProcessRenderAudio(ra)); 987 RETURN_ON_ERR(public_submodules_->gain_control->ProcessRenderAudio(ra));
989 } 988 }
990 989
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 fwd_proc_format(kSampleRate16kHz), 1560 fwd_proc_format(kSampleRate16kHz),
1562 split_rate(kSampleRate16kHz) {} 1561 split_rate(kSampleRate16kHz) {}
1563 1562
1564 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; 1563 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default;
1565 1564
1566 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; 1565 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default;
1567 1566
1568 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; 1567 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default;
1569 1568
1570 } // namespace webrtc 1569 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698