| 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 #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 } | |
| 30 #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" |
| 31 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 28 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
| 32 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" | 29 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" |
| 33 extern "C" { | 30 extern "C" { |
| 34 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 31 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 35 } | 32 } |
| 36 #include "webrtc/modules/audio_processing/logging/aec_logging.h" | 33 #include "webrtc/modules/audio_processing/logging/aec_logging.h" |
| 37 extern "C" { | 34 extern "C" { |
| 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 35 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
| 36 #include "webrtc/modules/audio_processing/utility/ring_buffer.h" |
| 39 } | 37 } |
| 40 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 38 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 41 #include "webrtc/typedefs.h" | 39 #include "webrtc/typedefs.h" |
| 42 | 40 |
| 43 namespace webrtc { | 41 namespace webrtc { |
| 44 | 42 |
| 45 // Buffer size (samples) | 43 // Buffer size (samples) |
| 46 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. | 44 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. |
| 47 | 45 |
| 48 // Metrics | 46 // Metrics |
| (...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1892 | 1890 |
| 1893 int WebRtcAec_system_delay(AecCore* self) { | 1891 int WebRtcAec_system_delay(AecCore* self) { |
| 1894 return self->system_delay; | 1892 return self->system_delay; |
| 1895 } | 1893 } |
| 1896 | 1894 |
| 1897 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 1895 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
| 1898 assert(delay >= 0); | 1896 assert(delay >= 0); |
| 1899 self->system_delay = delay; | 1897 self->system_delay = delay; |
| 1900 } | 1898 } |
| 1901 } // namespace webrtc | 1899 } // namespace webrtc |
| OLD | NEW |