| 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 b3f38f408ea219f3233809ce232901ac3fa1e4b9..16ea8dde7ebd0453253e65ed1969e9af126cfb2b 100644
|
| --- a/webrtc/modules/audio_processing/audio_processing_impl.cc
|
| +++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
|
| @@ -1380,10 +1380,12 @@ void AudioProcessingImpl::MaybeUpdateHistograms() {
|
| capture_.last_stream_delay_ms = capture_nonlocked_.stream_delay_ms;
|
|
|
| // Detect a jump in AEC system delay and log the difference.
|
| - const int frames_per_ms =
|
| + const int samples_per_ms =
|
| rtc::CheckedDivExact(capture_nonlocked_.split_rate, 1000);
|
| + RTC_DCHECK_LT(0, samples_per_ms);
|
| const int aec_system_delay_ms =
|
| - WebRtcAec_system_delay(echo_cancellation()->aec_core()) / frames_per_ms;
|
| + public_submodules_->echo_cancellation->GetSystemDelayInSamples() /
|
| + samples_per_ms;
|
| const int diff_aec_system_delay_ms =
|
| aec_system_delay_ms - capture_.last_aec_system_delay_ms;
|
| if (diff_aec_system_delay_ms > kMinDiffDelayMs &&
|
|
|