Index: webrtc/modules/audio_processing/echo_cancellation_impl.cc |
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
index debc597c540dd0d44ea50cf4be6463fe38c27698..eb5a06ebe9d87ab76a355dd0dabdcc4496905e88 100644 |
--- a/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
@@ -415,6 +415,14 @@ int EchoCancellationImpl::Initialize() { |
return AudioProcessing::kNoError; |
} |
+int EchoCancellationImpl::GetSystemDelayInSamples() const { |
+ rtc::CritScope cs(crit_capture_); |
+ RTC_DCHECK(is_component_enabled()); |
+ // Report the delay for the first AEC component. |
+ return WebRtcAec_system_delay( |
+ WebRtcAec_aec_core(static_cast<Handle*>(handle(0)))); |
+} |
+ |
void EchoCancellationImpl::AllocateRenderQueue() { |
const size_t new_render_queue_element_max_size = std::max<size_t>( |
static_cast<size_t>(1), |