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 /* | 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 #include <algorithm> | 17 #include <algorithm> |
18 #include <math.h> | 18 #include <math.h> |
19 #include <stddef.h> // size_t | 19 #include <stddef.h> // size_t |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <string.h> | 21 #include <string.h> |
22 | 22 |
23 #include "webrtc/base/checks.h" | 23 #include "webrtc/rtc_base/checks.h" |
24 extern "C" { | 24 extern "C" { |
25 #include "webrtc/common_audio/ring_buffer.h" | 25 #include "webrtc/common_audio/ring_buffer.h" |
26 } | 26 } |
27 #include "webrtc/base/checks.h" | |
28 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 27 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
29 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 28 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
30 #include "webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h" | 29 #include "webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h" |
31 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 30 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
32 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 31 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
| 32 #include "webrtc/rtc_base/checks.h" |
33 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 33 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
34 #include "webrtc/system_wrappers/include/metrics.h" | 34 #include "webrtc/system_wrappers/include/metrics.h" |
35 #include "webrtc/typedefs.h" | 35 #include "webrtc/typedefs.h" |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 namespace { | 38 namespace { |
39 enum class DelaySource { | 39 enum class DelaySource { |
40 kSystemDelay, // The delay values come from the OS. | 40 kSystemDelay, // The delay values come from the OS. |
41 kDelayAgnostic, // The delay values come from the DA-AEC. | 41 kDelayAgnostic, // The delay values come from the DA-AEC. |
42 }; | 42 }; |
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 | 2038 |
2039 int WebRtcAec_system_delay(AecCore* self) { | 2039 int WebRtcAec_system_delay(AecCore* self) { |
2040 return self->system_delay; | 2040 return self->system_delay; |
2041 } | 2041 } |
2042 | 2042 |
2043 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 2043 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
2044 RTC_DCHECK_GE(delay, 0); | 2044 RTC_DCHECK_GE(delay, 0); |
2045 self->system_delay = delay; | 2045 self->system_delay = delay; |
2046 } | 2046 } |
2047 } // namespace webrtc | 2047 } // namespace webrtc |
OLD | NEW |