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 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 6 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 270 }
271 271
272 return 0; 272 return 0;
273 } 273 }
274 274
275 // only buffer L band for farend 275 // only buffer L band for farend
276 int32_t WebRtcAec_BufferFarend(void* aecInst, 276 int32_t WebRtcAec_BufferFarend(void* aecInst,
277 const float* farend, 277 const float* farend,
278 int16_t nrOfSamples) { 278 int16_t nrOfSamples) {
279 Aec* aecpc = aecInst; 279 Aec* aecpc = aecInst;
280 int newNrOfSamples = (int)nrOfSamples; 280 int newNrOfSamples = nrOfSamples;
281 float new_farend[MAX_RESAMP_LEN]; 281 float new_farend[MAX_RESAMP_LEN];
282 const float* farend_ptr = farend; 282 const float* farend_ptr = farend;
283 283
284 if (farend == NULL) { 284 if (farend == NULL) {
285 aecpc->lastError = AEC_NULL_POINTER_ERROR; 285 aecpc->lastError = AEC_NULL_POINTER_ERROR;
286 return -1; 286 return -1;
287 } 287 }
288 288
289 if (aecpc->initFlag != initCheck) { 289 if (aecpc->initFlag != initCheck) {
290 aecpc->lastError = AEC_UNINITIALIZED_ERROR; 290 aecpc->lastError = AEC_UNINITIALIZED_ERROR;
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 } 921 }
922 } else { 922 } else {
923 self->timeForDelayChange = 0; 923 self->timeForDelayChange = 0;
924 } 924 }
925 self->lastDelayDiff = delay_difference; 925 self->lastDelayDiff = delay_difference;
926 926
927 if (self->timeForDelayChange > 25) { 927 if (self->timeForDelayChange > 25) {
928 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0); 928 self->knownDelay = WEBRTC_SPL_MAX((int)self->filtDelay - 256, 0);
929 } 929 }
930 } 930 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698