| OLD | NEW |
| 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 #include "webrtc/common_audio/ring_buffer.h" |
| 17 #include "webrtc/common_audio/signal_processing/include/real_fft.h" | 18 #include "webrtc/common_audio/signal_processing/include/real_fft.h" |
| 18 #include "webrtc/modules/audio_processing/aecm/echo_control_mobile.h" | 19 #include "webrtc/modules/audio_processing/aecm/echo_control_mobile.h" |
| 19 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 20 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
| 20 #include "webrtc/modules/audio_processing/utility/ring_buffer.h" | |
| 21 #include "webrtc/system_wrappers/include/compile_assert_c.h" | 21 #include "webrtc/system_wrappers/include/compile_assert_c.h" |
| 22 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 22 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 23 #include "webrtc/typedefs.h" | 23 #include "webrtc/typedefs.h" |
| 24 | 24 |
| 25 #ifdef AEC_DEBUG | 25 #ifdef AEC_DEBUG |
| 26 FILE *dfile; | 26 FILE *dfile; |
| 27 FILE *testfile; | 27 FILE *testfile; |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 const int16_t WebRtcAecm_kCosTable[] = { | 30 const int16_t WebRtcAecm_kCosTable[] = { |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, | 1224 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, |
| 1225 sizeof(int16_t) * readLen); | 1225 sizeof(int16_t) * readLen); |
| 1226 aecm->farBufReadPos = 0; | 1226 aecm->farBufReadPos = 0; |
| 1227 readPos = readLen; | 1227 readPos = readLen; |
| 1228 readLen = farLen - readLen; | 1228 readLen = farLen - readLen; |
| 1229 } | 1229 } |
| 1230 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, | 1230 memcpy(farend + readPos, aecm->farBuf + aecm->farBufReadPos, |
| 1231 sizeof(int16_t) * readLen); | 1231 sizeof(int16_t) * readLen); |
| 1232 aecm->farBufReadPos += readLen; | 1232 aecm->farBufReadPos += readLen; |
| 1233 } | 1233 } |
| OLD | NEW |