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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 NoiseSuppressionImpl::num_noise_bins())); | 1386 NoiseSuppressionImpl::num_noise_bins())); |
1387 } | 1387 } |
1388 #endif | 1388 #endif |
1389 } | 1389 } |
1390 | 1390 |
1391 void AudioProcessingImpl::InitializeLevelController() { | 1391 void AudioProcessingImpl::InitializeLevelController() { |
1392 private_submodules_->level_controller->Initialize(proc_sample_rate_hz()); | 1392 private_submodules_->level_controller->Initialize(proc_sample_rate_hz()); |
1393 } | 1393 } |
1394 | 1394 |
1395 void AudioProcessingImpl::InitializeResidualEchoDetector() { | 1395 void AudioProcessingImpl::InitializeResidualEchoDetector() { |
1396 private_submodules_->residual_echo_detector->Initialize( | 1396 private_submodules_->residual_echo_detector->Initialize(); |
1397 proc_sample_rate_hz()); | |
1398 } | 1397 } |
1399 | 1398 |
1400 void AudioProcessingImpl::MaybeUpdateHistograms() { | 1399 void AudioProcessingImpl::MaybeUpdateHistograms() { |
1401 static const int kMinDiffDelayMs = 60; | 1400 static const int kMinDiffDelayMs = 60; |
1402 | 1401 |
1403 if (echo_cancellation()->is_enabled()) { | 1402 if (echo_cancellation()->is_enabled()) { |
1404 // Activate delay_jumps_ counters if we know echo_cancellation is runnning. | 1403 // Activate delay_jumps_ counters if we know echo_cancellation is runnning. |
1405 // If a stream has echo we know that the echo_cancellation is in process. | 1404 // If a stream has echo we know that the echo_cancellation is in process. |
1406 if (capture_.stream_delay_jumps == -1 && | 1405 if (capture_.stream_delay_jumps == -1 && |
1407 echo_cancellation()->stream_has_echo()) { | 1406 echo_cancellation()->stream_has_echo()) { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 capture_processing_format(kSampleRate16kHz), | 1627 capture_processing_format(kSampleRate16kHz), |
1629 split_rate(kSampleRate16kHz) {} | 1628 split_rate(kSampleRate16kHz) {} |
1630 | 1629 |
1631 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; | 1630 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; |
1632 | 1631 |
1633 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; | 1632 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; |
1634 | 1633 |
1635 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; | 1634 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; |
1636 | 1635 |
1637 } // namespace webrtc | 1636 } // namespace webrtc |
OLD | NEW |