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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_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: Rebase with latest master 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
(...skipping 17 matching lines...) Expand all
28 extern "C" { 28 extern "C" {
29 #include "webrtc/common_audio/ring_buffer.h" 29 #include "webrtc/common_audio/ring_buffer.h"
30 } 30 }
31 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 31 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
32 #include "webrtc/modules/audio_processing/aec/aec_common.h" 32 #include "webrtc/modules/audio_processing/aec/aec_common.h"
33 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" 33 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h"
34 extern "C" { 34 extern "C" {
35 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" 35 #include "webrtc/modules/audio_processing/aec/aec_rdft.h"
36 } 36 }
37 #include "webrtc/modules/audio_processing/logging/aec_logging.h" 37 #include "webrtc/modules/audio_processing/logging/aec_logging.h"
38 extern "C" {
39 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h"
40 }
41 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 39 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
42 #include "webrtc/typedefs.h" 40 #include "webrtc/typedefs.h"
43 41
44 namespace webrtc { 42 namespace webrtc {
45 43
46 // Buffer size (samples) 44 // Buffer size (samples)
47 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. 45 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz.
48 46
49 // Metrics 47 // Metrics
50 static const size_t kSubCountLen = 4; 48 static const size_t kSubCountLen = 4;
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 1946
1949 int WebRtcAec_system_delay(AecCore* self) { 1947 int WebRtcAec_system_delay(AecCore* self) {
1950 return self->system_delay; 1948 return self->system_delay;
1951 } 1949 }
1952 1950
1953 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { 1951 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) {
1954 assert(delay >= 0); 1952 assert(delay >= 0);
1955 self->system_delay = delay; 1953 self->system_delay = delay;
1956 } 1954 }
1957 } // namespace webrtc 1955 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('k') | webrtc/modules/audio_processing/aecm/aecm_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698