1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| #ifndef LIBALG_AEC_H__
| #define LIBALG_AEC_H__
|
| #include "typedefs.h"
|
| typedef enum {
| NlpConservative = 0,
| NlpModerate,
| NlpAggressive
| }aec_mode_t;
|
| void* alg_aec_create(uint16_t sample_rate , uint16_t aec_sample_rate, uint16_t sample_num,void* mem1_ptr ,void* mem2_ptr, int tail_ms);
|
|
| void alg_aec_destroy(uvoidptr handle);
|
| int32_t alg_aec_process(uvoidptr handle,
| const float* nearend,
| const float* farend,
| float* out);
|
| /*
| Òì²½´¦Àí£¬ÔÚµ¥ºËDSPÖУ¬alg_aec_process_asy º¯ÊýÓ¦¸Ã·ÅÔÚÓÅÏȼ¶½ÏµÍµÄÈÎÎñÖС£
| ¶øalg_aec_process ÓÅÏȼ¶ ¸ßÓÚ alg_aec_process_asy¡£
| */
| int32_t alg_aec_process_asy(uvoidptr handle);
|
| void alg_aec_set_param(uvoidptr handle, aec_mode_t mode);
|
| double alg_aec_get_ulitily(uvoidptr handle);
|
| void alg_aec_clr_ulitily(uvoidptr handle);
|
| void alg_aec_timer_handler(uvoidptr handle, float secs);////////////////////////////////
|
| #endif // !LIBALG_AEC_H__
|
|