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 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 EchoCancellation::Metrics metrics; | 1489 EchoCancellation::Metrics metrics; |
1490 int success = public_submodules_->echo_cancellation->GetMetrics(&metrics); | 1490 int success = public_submodules_->echo_cancellation->GetMetrics(&metrics); |
1491 if (success == Error::kNoError) { | 1491 if (success == Error::kNoError) { |
1492 stats.a_nlp.Set(metrics.a_nlp); | 1492 stats.a_nlp.Set(metrics.a_nlp); |
1493 stats.divergent_filter_fraction = metrics.divergent_filter_fraction; | 1493 stats.divergent_filter_fraction = metrics.divergent_filter_fraction; |
1494 stats.echo_return_loss.Set(metrics.echo_return_loss); | 1494 stats.echo_return_loss.Set(metrics.echo_return_loss); |
1495 stats.echo_return_loss_enhancement.Set( | 1495 stats.echo_return_loss_enhancement.Set( |
1496 metrics.echo_return_loss_enhancement); | 1496 metrics.echo_return_loss_enhancement); |
1497 stats.residual_echo_return_loss.Set(metrics.residual_echo_return_loss); | 1497 stats.residual_echo_return_loss.Set(metrics.residual_echo_return_loss); |
1498 } | 1498 } |
| 1499 stats.residual_echo_likelihood = |
| 1500 private_submodules_->residual_echo_detector->echo_likelihood(); |
1499 public_submodules_->echo_cancellation->GetDelayMetrics( | 1501 public_submodules_->echo_cancellation->GetDelayMetrics( |
1500 &stats.delay_median, &stats.delay_standard_deviation, | 1502 &stats.delay_median, &stats.delay_standard_deviation, |
1501 &stats.fraction_poor_delays); | 1503 &stats.fraction_poor_delays); |
1502 return stats; | 1504 return stats; |
1503 } | 1505 } |
1504 | 1506 |
1505 EchoCancellation* AudioProcessingImpl::echo_cancellation() const { | 1507 EchoCancellation* AudioProcessingImpl::echo_cancellation() const { |
1506 return public_submodules_->echo_cancellation.get(); | 1508 return public_submodules_->echo_cancellation.get(); |
1507 } | 1509 } |
1508 | 1510 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1823 capture_processing_format(kSampleRate16kHz), | 1825 capture_processing_format(kSampleRate16kHz), |
1824 split_rate(kSampleRate16kHz) {} | 1826 split_rate(kSampleRate16kHz) {} |
1825 | 1827 |
1826 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; | 1828 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; |
1827 | 1829 |
1828 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; | 1830 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; |
1829 | 1831 |
1830 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; | 1832 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; |
1831 | 1833 |
1832 } // namespace webrtc | 1834 } // namespace webrtc |
OLD | NEW |