Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: webrtc/modules/audio_processing/aec/echo_cancellation.c

Issue 1211053006: Rename APM Config ReportedDelay to DelayAgnostic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix error in android test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 aecpc->rate_factor = aecpc->splitSampFreq / 8000; 231 aecpc->rate_factor = aecpc->splitSampFreq / 8000;
232 232
233 aecpc->sum = 0; 233 aecpc->sum = 0;
234 aecpc->counter = 0; 234 aecpc->counter = 0;
235 aecpc->checkBuffSize = 1; 235 aecpc->checkBuffSize = 1;
236 aecpc->firstVal = 0; 236 aecpc->firstVal = 0;
237 237
238 // We skip the startup_phase completely (setting to 0) if DA-AEC is enabled, 238 // We skip the startup_phase completely (setting to 0) if DA-AEC is enabled,
239 // but not extended_filter mode. 239 // but not extended_filter mode.
240 aecpc->startup_phase = WebRtcAec_extended_filter_enabled(aecpc->aec) || 240 aecpc->startup_phase = WebRtcAec_extended_filter_enabled(aecpc->aec) ||
241 WebRtcAec_reported_delay_enabled(aecpc->aec); 241 !WebRtcAec_delay_agnostic_enabled(aecpc->aec);
242 aecpc->bufSizeStart = 0; 242 aecpc->bufSizeStart = 0;
243 aecpc->checkBufSizeCtr = 0; 243 aecpc->checkBufSizeCtr = 0;
244 aecpc->msInSndCardBuf = 0; 244 aecpc->msInSndCardBuf = 0;
245 aecpc->filtDelay = -1; // -1 indicates an initialized state. 245 aecpc->filtDelay = -1; // -1 indicates an initialized state.
246 aecpc->timeForDelayChange = 0; 246 aecpc->timeForDelayChange = 0;
247 aecpc->knownDelay = 0; 247 aecpc->knownDelay = 0;
248 aecpc->lastDelayDiff = 0; 248 aecpc->lastDelayDiff = 0;
249 249
250 aecpc->skewFrCtr = 0; 250 aecpc->skewFrCtr = 0;
251 aecpc->resample = kAecFalse; 251 aecpc->resample = kAecFalse;
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 } 914 }
915 } else { 915 } else {
916 self->timeForDelayChange = 0; 916 self->timeForDelayChange = 0;
917 } 917 }
918 self->lastDelayDiff = delay_difference; 918 self->lastDelayDiff = delay_difference;
919 919
920 if (self->timeForDelayChange > 25) { 920 if (self->timeForDelayChange > 25) {
921 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0); 921 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0);
922 } 922 }
923 } 923 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core_internal.h ('k') | webrtc/modules/audio_processing/aec/system_delay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698