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

Side by Side Diff: webrtc/modules/audio_processing/aecm/aecm_core.cc

Issue 1878613002: Changed the delay estimator to be built using C++ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Corrected all Cpp build errors Created 4 years, 8 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 #include "webrtc/modules/audio_processing/aecm/aecm_core.h" 11 #include "webrtc/modules/audio_processing/aecm/aecm_core.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <stddef.h> 14 #include <stddef.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 16
17 extern "C" { 17 extern "C" {
18 #include "webrtc/common_audio/ring_buffer.h" 18 #include "webrtc/common_audio/ring_buffer.h"
19 #include "webrtc/common_audio/signal_processing/include/real_fft.h" 19 #include "webrtc/common_audio/signal_processing/include/real_fft.h"
20 #include "webrtc/modules/audio_processing/aecm/echo_control_mobile.h" 20 #include "webrtc/modules/audio_processing/aecm/echo_control_mobile.h"
21 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h"
22 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 21 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
hlundin-webrtc 2016/04/12 06:54:12 Wrong order of includes.
peah-webrtc 2016/04/12 11:53:40 Done.
23 } 22 }
23 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h"
24 #include "webrtc/typedefs.h" 24 #include "webrtc/typedefs.h"
25 25
26 #ifdef AEC_DEBUG 26 #ifdef AEC_DEBUG
27 FILE *dfile; 27 FILE *dfile;
28 FILE *testfile; 28 FILE *testfile;
29 #endif 29 #endif
30 30
31 const int16_t WebRtcAecm_kCosTable[] = { 31 const int16_t WebRtcAecm_kCosTable[] = {
32 8192, 8190, 8187, 8180, 8172, 8160, 8147, 8130, 8112, 32 8192, 8190, 8187, 8180, 8172, 8160, 8147, 8130, 8112,
33 8091, 8067, 8041, 8012, 7982, 7948, 7912, 7874, 7834, 33 8091, 8067, 8041, 8012, 7982, 7948, 7912, 7874, 7834,
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, 1225 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos,
1226 sizeof(int16_t) * readLen); 1226 sizeof(int16_t) * readLen);
1227 aecm->farBufReadPos = 0; 1227 aecm->farBufReadPos = 0;
1228 readPos = readLen; 1228 readPos = readLen;
1229 readLen = farLen - readLen; 1229 readLen = farLen - readLen;
1230 } 1230 }
1231 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, 1231 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos,
1232 sizeof(int16_t) * readLen); 1232 sizeof(int16_t) * readLen);
1233 aecm->farBufReadPos += readLen; 1233 aecm->farBufReadPos += readLen;
1234 } 1234 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.cc ('k') | webrtc/modules/audio_processing/aecm/aecm_core_c.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698