qipp
2025-11-07 744722688187eb4991c72464e2bb5e06b244fee7
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
37
 
 
#ifndef _ALGLIB_ANS_H__
#define _ALGLIB_ANS_H__
 
#include "typedefs.h"
 
/*
0: Mild (6 dB), 1: Medium (10 dB), 2: Aggressive (15 dB)
*/
typedef enum{
    ns_6dB,
    ns_12dB,
    ns_18dB,
    ns_24dB,
    ns_30dB,
    ns_36dB,
    ns_off,
}ans_mode;
 
void* alg_ans_create(int sampRate, int nsSampleRate , int sampNum);
 
int alg_ans_destroy(void* NS_inst);
 
int alg_ans_set_policy(uvoidptr NS_inst, ans_mode mode);
 
int alg_ans_process(uvoidptr NS_inst, const float* data_in, float* data_out);
 
int alg_ans_process_asy(uvoidptr NS_inst);
 
double alg_ans_get_ulitily(uvoidptr handle);
 
void alg_ans_clr_ulitily(uvoidptr handle);
 
void alg_ans_timer_handler(uvoidptr handle, float secs);//////////////////////////////////
 
#endif