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 * Specifies the interface for the AEC core. | 12 * Specifies the interface for the AEC core. |
13 */ | 13 */ |
14 | 14 |
15 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 15 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
16 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 16 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
17 | 17 |
18 #include <stddef.h> | 18 #include <stddef.h> |
19 | 19 |
20 #include <memory> | 20 #include <memory> |
21 | 21 |
22 extern "C" { | 22 extern "C" { |
23 #include "webrtc/common_audio/ring_buffer.h" | 23 #include "webrtc/common_audio/ring_buffer.h" |
24 } | 24 } |
| 25 #include "webrtc/base/constructormagic.h" |
25 #include "webrtc/common_audio/wav_file.h" | 26 #include "webrtc/common_audio/wav_file.h" |
26 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 27 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
27 #include "webrtc/modules/audio_processing/utility/block_mean_calculator.h" | 28 #include "webrtc/modules/audio_processing/utility/block_mean_calculator.h" |
28 #include "webrtc/modules/audio_processing/utility/ooura_fft.h" | 29 #include "webrtc/modules/audio_processing/utility/ooura_fft.h" |
29 #include "webrtc/rtc_base/constructormagic.h" | |
30 #include "webrtc/typedefs.h" | 30 #include "webrtc/typedefs.h" |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
33 | 33 |
34 #define FRAME_LEN 80 | 34 #define FRAME_LEN 80 |
35 #define PART_LEN 64 // Length of partition | 35 #define PART_LEN 64 // Length of partition |
36 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients | 36 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients |
37 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2 | 37 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2 |
38 #define NUM_HIGH_BANDS_MAX 2 // Max number of high bands | 38 #define NUM_HIGH_BANDS_MAX 2 // Max number of high bands |
39 | 39 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 int WebRtcAec_system_delay(AecCore* self); | 326 int WebRtcAec_system_delay(AecCore* self); |
327 | 327 |
328 // Sets the |system_delay| to |value|. Note that if the value is changed | 328 // Sets the |system_delay| to |value|. Note that if the value is changed |
329 // improperly, there can be a performance regression. So it should be used with | 329 // improperly, there can be a performance regression. So it should be used with |
330 // care. | 330 // care. |
331 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); | 331 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); |
332 | 332 |
333 } // namespace webrtc | 333 } // namespace webrtc |
334 | 334 |
335 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 335 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
OLD | NEW |