Index: webrtc/modules/audio_processing/audio_processing_impl.cc |
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc |
index f63cb206b5c6aaf72a4bc30b47ebd0b6c7c8680b..cfeb01c7b7b354e3dd4af51b54b05cf370f3cf5b 100644 |
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc |
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc |
@@ -189,9 +189,11 @@ bool AudioProcessingImpl::ApmSubmoduleStates::CaptureMultiBandSubModulesActive() |
const { |
#if WEBRTC_INTELLIGIBILITY_ENHANCER |
return CaptureMultiBandProcessingActive() || |
- intelligibility_enhancer_enabled_ || voice_activity_detector_enabled_; |
+ intelligibility_enhancer_enabled_ || |
peah-webrtc
2016/11/10 10:47:09
Great catch! I missed that when reviewing the othe
ivoc
2016/11/10 15:36:08
Good point, I will make a new CL for these changes
|
+ voice_activity_detector_enabled_ || residual_echo_detector_enabled_; |
#else |
- return CaptureMultiBandProcessingActive() || voice_activity_detector_enabled_; |
+ return CaptureMultiBandProcessingActive() || |
+ voice_activity_detector_enabled_ || residual_echo_detector_enabled_; |
#endif |
} |
@@ -1496,6 +1498,8 @@ AudioProcessing::AudioProcessingStatistics AudioProcessingImpl::GetStatistics() |
metrics.echo_return_loss_enhancement); |
stats.residual_echo_return_loss.Set(metrics.residual_echo_return_loss); |
} |
+ stats.residual_echo_likelihood = |
+ private_submodules_->residual_echo_detector->echo_likelihood(); |
public_submodules_->echo_cancellation->GetDelayMetrics( |
&stats.delay_median, &stats.delay_standard_deviation, |
&stats.fraction_poor_delays); |