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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include <stdlib.h> | 24 #include <stdlib.h> |
25 #include <string.h> | 25 #include <string.h> |
26 | 26 |
27 #include "webrtc/common_audio/ring_buffer.h" | 27 #include "webrtc/common_audio/ring_buffer.h" |
28 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 28 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
29 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 29 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
30 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" | 30 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" |
31 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 31 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
32 #include "webrtc/modules/audio_processing/logging/aec_logging.h" | 32 #include "webrtc/modules/audio_processing/logging/aec_logging.h" |
33 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 33 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
34 #include "webrtc/system_wrappers/interface/cpu_features_wrapper.h" | 34 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
35 #include "webrtc/typedefs.h" | 35 #include "webrtc/typedefs.h" |
36 | 36 |
37 | 37 |
38 // Buffer size (samples) | 38 // Buffer size (samples) |
39 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. | 39 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. |
40 | 40 |
41 // Metrics | 41 // Metrics |
42 static const int subCountLen = 4; | 42 static const int subCountLen = 4; |
43 static const int countLen = 50; | 43 static const int countLen = 50; |
44 static const int kDelayMetricsAggregationWindow = 1250; // 5 seconds at 16 kHz. | 44 static const int kDelayMetricsAggregationWindow = 1250; // 5 seconds at 16 kHz. |
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 int WebRtcAec_extended_filter_enabled(AecCore* self) { | 1920 int WebRtcAec_extended_filter_enabled(AecCore* self) { |
1921 return self->extended_filter_enabled; | 1921 return self->extended_filter_enabled; |
1922 } | 1922 } |
1923 | 1923 |
1924 int WebRtcAec_system_delay(AecCore* self) { return self->system_delay; } | 1924 int WebRtcAec_system_delay(AecCore* self) { return self->system_delay; } |
1925 | 1925 |
1926 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 1926 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
1927 assert(delay >= 0); | 1927 assert(delay >= 0); |
1928 self->system_delay = delay; | 1928 self->system_delay = delay; |
1929 } | 1929 } |
OLD | NEW |