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 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 | 15 |
16 #include "webrtc/typedefs.h" | 16 #include "webrtc/typedefs.h" |
17 | 17 |
18 // Errors | 18 // Errors |
19 #define AEC_UNSPECIFIED_ERROR 12000 | 19 #define AEC_UNSPECIFIED_ERROR 12000 |
20 #define AEC_UNSUPPORTED_FUNCTION_ERROR 12001 | 20 #define AEC_UNSUPPORTED_FUNCTION_ERROR 12001 |
21 #define AEC_UNINITIALIZED_ERROR 12002 | 21 #define AEC_UNINITIALIZED_ERROR 12002 |
22 #define AEC_NULL_POINTER_ERROR 12003 | 22 #define AEC_NULL_POINTER_ERROR 12003 |
23 #define AEC_BAD_PARAMETER_ERROR 12004 | 23 #define AEC_BAD_PARAMETER_ERROR 12004 |
24 | 24 |
25 // Warnings | 25 // Warnings |
26 #define AEC_BAD_PARAMETER_WARNING 12050 | 26 #define AEC_BAD_PARAMETER_WARNING 12050 |
27 | 27 |
28 enum { | 28 enum { kAecNlpConservative = 0, kAecNlpModerate, kAecNlpAggressive }; |
29 kAecNlpConservative = 0, | |
30 kAecNlpModerate, | |
31 kAecNlpAggressive | |
32 }; | |
33 | 29 |
34 enum { | 30 enum { kAecFalse = 0, kAecTrue }; |
35 kAecFalse = 0, | |
36 kAecTrue | |
37 }; | |
38 | 31 |
39 typedef struct { | 32 typedef struct { |
40 int16_t nlpMode; // default kAecNlpModerate | 33 int16_t nlpMode; // default kAecNlpModerate |
41 int16_t skewMode; // default kAecFalse | 34 int16_t skewMode; // default kAecFalse |
42 int16_t metricsMode; // default kAecFalse | 35 int16_t metricsMode; // default kAecFalse |
43 int delay_logging; // default kAecFalse | 36 int delay_logging; // default kAecFalse |
44 // float realSkew; | 37 // float realSkew; |
45 } AecConfig; | 38 } AecConfig; |
46 | 39 |
47 typedef struct { | 40 typedef struct { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // | 235 // |
243 // Return value: | 236 // Return value: |
244 // - AecCore pointer : NULL for error. | 237 // - AecCore pointer : NULL for error. |
245 // | 238 // |
246 struct AecCore* WebRtcAec_aec_core(void* handle); | 239 struct AecCore* WebRtcAec_aec_core(void* handle); |
247 | 240 |
248 #ifdef __cplusplus | 241 #ifdef __cplusplus |
249 } | 242 } |
250 #endif | 243 #endif |
251 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ | 244 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_ECHO_CANCELLATION_H_ |
OLD | NEW |