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

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

Issue 1856323002: Revert of Moved ring-buffer related files from common_audio to audio_processing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 /* 11 /*
12 * The core AEC algorithm, which is presented with time-aligned signals. 12 * The core AEC algorithm, which is presented with time-aligned signals.
13 */ 13 */
14 14
15 #include "webrtc/modules/audio_processing/aec/aec_core.h" 15 #include "webrtc/modules/audio_processing/aec/aec_core.h"
16 16
17 #ifdef WEBRTC_AEC_DEBUG_DUMP 17 #ifdef WEBRTC_AEC_DEBUG_DUMP
18 #include <stdio.h> 18 #include <stdio.h>
19 #endif 19 #endif
20 20
21 #include <assert.h> 21 #include <assert.h>
22 #include <math.h> 22 #include <math.h>
23 #include <stddef.h> // size_t 23 #include <stddef.h> // size_t
24 #include <stdlib.h> 24 #include <stdlib.h>
25 #include <string.h> 25 #include <string.h>
26 26
27 extern "C" {
28 #include "webrtc/common_audio/ring_buffer.h"
29 }
27 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 30 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
28 #include "webrtc/modules/audio_processing/aec/aec_common.h" 31 #include "webrtc/modules/audio_processing/aec/aec_common.h"
29 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" 32 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h"
30 extern "C" { 33 extern "C" {
31 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" 34 #include "webrtc/modules/audio_processing/aec/aec_rdft.h"
32 } 35 }
33 #include "webrtc/modules/audio_processing/logging/aec_logging.h" 36 #include "webrtc/modules/audio_processing/logging/aec_logging.h"
34 extern "C" { 37 extern "C" {
35 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h"
36 #include "webrtc/modules/audio_processing/utility/ring_buffer.h"
37 } 39 }
38 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 40 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
39 #include "webrtc/typedefs.h" 41 #include "webrtc/typedefs.h"
40 42
41 namespace webrtc { 43 namespace webrtc {
42 44
43 // Buffer size (samples) 45 // Buffer size (samples)
44 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. 46 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz.
45 47
46 // Metrics 48 // Metrics
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 1892
1891 int WebRtcAec_system_delay(AecCore* self) { 1893 int WebRtcAec_system_delay(AecCore* self) {
1892 return self->system_delay; 1894 return self->system_delay;
1893 } 1895 }
1894 1896
1895 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { 1897 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) {
1896 assert(delay >= 0); 1898 assert(delay >= 0);
1897 self->system_delay = delay; 1899 self->system_delay = delay;
1898 } 1900 }
1899 } // namespace webrtc 1901 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('k') | webrtc/modules/audio_processing/aec/aec_core_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698