#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__