OLD | NEW |
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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 } | 968 } |
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(ra); |
979 ra->split_channels_f(kBand0To8kHz), capture_nonlocked_.split_rate, | |
980 ra->num_channels()); | |
981 } | 979 } |
982 #endif | 980 #endif |
983 | 981 |
984 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessRenderAudio(ra)); | 982 RETURN_ON_ERR(public_submodules_->echo_cancellation->ProcessRenderAudio(ra)); |
985 RETURN_ON_ERR( | 983 RETURN_ON_ERR( |
986 public_submodules_->echo_control_mobile->ProcessRenderAudio(ra)); | 984 public_submodules_->echo_control_mobile->ProcessRenderAudio(ra)); |
987 if (!constants_.use_experimental_agc) { | 985 if (!constants_.use_experimental_agc) { |
988 RETURN_ON_ERR(public_submodules_->gain_control->ProcessRenderAudio(ra)); | 986 RETURN_ON_ERR(public_submodules_->gain_control->ProcessRenderAudio(ra)); |
989 } | 987 } |
990 | 988 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 capture_nonlocked_.split_rate); | 1276 capture_nonlocked_.split_rate); |
1279 } | 1277 } |
1280 } | 1278 } |
1281 | 1279 |
1282 void AudioProcessingImpl::InitializeIntelligibility() { | 1280 void AudioProcessingImpl::InitializeIntelligibility() { |
1283 #if WEBRTC_INTELLIGIBILITY_ENHANCER | 1281 #if WEBRTC_INTELLIGIBILITY_ENHANCER |
1284 if (capture_nonlocked_.intelligibility_enabled) { | 1282 if (capture_nonlocked_.intelligibility_enabled) { |
1285 public_submodules_->intelligibility_enhancer.reset( | 1283 public_submodules_->intelligibility_enhancer.reset( |
1286 new IntelligibilityEnhancer(capture_nonlocked_.split_rate, | 1284 new IntelligibilityEnhancer(capture_nonlocked_.split_rate, |
1287 render_.render_audio->num_channels(), | 1285 render_.render_audio->num_channels(), |
| 1286 render_.render_audio->num_bands(), |
1288 NoiseSuppressionImpl::num_noise_bins())); | 1287 NoiseSuppressionImpl::num_noise_bins())); |
1289 } | 1288 } |
1290 #endif | 1289 #endif |
1291 } | 1290 } |
1292 | 1291 |
1293 void AudioProcessingImpl::InitializeHighPassFilter() { | 1292 void AudioProcessingImpl::InitializeHighPassFilter() { |
1294 public_submodules_->high_pass_filter->Initialize(num_proc_channels(), | 1293 public_submodules_->high_pass_filter->Initialize(num_proc_channels(), |
1295 proc_sample_rate_hz()); | 1294 proc_sample_rate_hz()); |
1296 } | 1295 } |
1297 | 1296 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |