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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_resampler.cc

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 Created 3 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
11 /* Resamples a signal to an arbitrary rate. Used by the AEC to compensate for 11 /* Resamples a signal to an arbitrary rate. Used by the AEC to compensate for
12 * clock skew by resampling the farend signal. 12 * clock skew by resampling the farend signal.
13 */ 13 */
14 14
15 #include "webrtc/modules/audio_processing/aec/aec_resampler.h" 15 #include "webrtc/modules/audio_processing/aec/aec_resampler.h"
16 16
17 #include <math.h> 17 #include <math.h>
18 #include <stdlib.h> 18 #include <stdlib.h>
19 #include <string.h> 19 #include <string.h>
20 20
21 #include "webrtc/base/checks.h"
22 #include "webrtc/modules/audio_processing/aec/aec_core.h" 21 #include "webrtc/modules/audio_processing/aec/aec_core.h"
22 #include "webrtc/rtc_base/checks.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 enum { kEstimateLengthFrames = 400 }; 26 enum { kEstimateLengthFrames = 400 };
27 27
28 typedef struct { 28 typedef struct {
29 float buffer[kResamplerBufferSize]; 29 float buffer[kResamplerBufferSize];
30 float position; 30 float position;
31 31
32 int deviceSampleRateHz; 32 int deviceSampleRateHz;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 denom = x2 - xAvg * x; 198 denom = x2 - xAvg * x;
199 199
200 if (denom != 0) { 200 if (denom != 0) {
201 skew = (xy - xAvg * y) / denom; 201 skew = (xy - xAvg * y) / denom;
202 } 202 }
203 203
204 *skewEst = skew; 204 *skewEst = skew;
205 return 0; 205 return 0;
206 } 206 }
207 } // namespace webrtc 207 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.cc ('k') | webrtc/modules/audio_processing/aec/echo_cancellation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698