From ea154106a81f2f8f08850a19caee09834283a673 Mon Sep 17 00:00:00 2001 From: peah Date: Mon, 11 Sep 2017 06:44:37 -0700 Subject: [PATCH] Lowered the allowed jitter in the api calls to a reasonable level This CL reduces the allowed jitter in the api calls to a reasonable level in order to ensure a quicker revery from audio path glitches. BUG=webrtc:8224, chromium:763775 Review-Url: https://codereview.webrtc.org/3009273002 Cr-Commit-Position: refs/heads/master@{#19772} --- webrtc/modules/audio_processing/aec3/aec3_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_processing/aec3/aec3_common.h b/webrtc/modules/audio_processing/aec3/aec3_common.h index b8b638d1d8..feb5bdbf62 100644 --- a/webrtc/modules/audio_processing/aec3/aec3_common.h +++ b/webrtc/modules/audio_processing/aec3/aec3_common.h @@ -64,7 +64,7 @@ constexpr size_t kRenderDelayBufferSize = (3 * kDownsampledRenderBufferSize) / (4 * kSubBlockSize); constexpr size_t kMinEchoPathDelayBlocks = 5; -constexpr size_t kMaxApiCallsJitterBlocks = 60; +constexpr size_t kMaxApiCallsJitterBlocks = 26; constexpr size_t kRenderTransferQueueSize = kMaxApiCallsJitterBlocks / 2; static_assert(2 * kRenderTransferQueueSize >= kMaxApiCallsJitterBlocks, "Requirement to ensure buffer overflow detection");