17 lines
456 B
C
17 lines
456 B
C
#ifndef _ALGORITHM_H
|
|
#define _ALGORITHM_H
|
|
|
|
#include <stdint.h>
|
|
|
|
enum audio_algo_sel {
|
|
AUDIO_ALGO_SEL_AEC = 0x01,
|
|
AUDIO_ALGO_SEL_NS = 0x02,
|
|
AUDIO_ALGO_SEL_AGC = 0x04,
|
|
};
|
|
|
|
void *algorithm_init(uint8_t algo_sel, uint32_t sample_rate, uint8_t ns_level, uint16_t agc_mode, uint32_t *frame_size);
|
|
int algorithm_launch(void *handle, int16_t *farend, int16_t *nearend, int16_t **out);
|
|
void algorithm_destroy(void *handle);
|
|
|
|
#endif // _ALGORITHM_H
|