| 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 <stddef.h> // size_t | 24 #include <stddef.h> // size_t |
| 25 #include <stdlib.h> | 25 #include <stdlib.h> |
| 26 #include <string.h> | 26 #include <string.h> |
| 27 | 27 |
| 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" { | |
| 35 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 34 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 36 } | |
| 37 #include "webrtc/modules/audio_processing/logging/aec_logging.h" | 35 #include "webrtc/modules/audio_processing/logging/aec_logging.h" |
| 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 36 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
| 39 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 37 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 40 #include "webrtc/typedefs.h" | 38 #include "webrtc/typedefs.h" |
| 41 | 39 |
| 42 namespace webrtc { | 40 namespace webrtc { |
| 43 | 41 |
| 44 // Buffer size (samples) | 42 // Buffer size (samples) |
| 45 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. | 43 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. |
| 46 | 44 |
| (...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 | 1944 |
| 1947 int WebRtcAec_system_delay(AecCore* self) { | 1945 int WebRtcAec_system_delay(AecCore* self) { |
| 1948 return self->system_delay; | 1946 return self->system_delay; |
| 1949 } | 1947 } |
| 1950 | 1948 |
| 1951 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 1949 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
| 1952 assert(delay >= 0); | 1950 assert(delay >= 0); |
| 1953 self->system_delay = delay; | 1951 self->system_delay = delay; |
| 1954 } | 1952 } |
| 1955 } // namespace webrtc | 1953 } // namespace webrtc |
| OLD | NEW |