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
| /*
| * filter.h
| * Description: Â˲¨Æ÷
| *
| * Created on: 2014-11-4
| * Author: Graydon
| * Modify:
| */
|
| #ifndef CFILTER_H_
| #define CFILTER_H_
|
|
|
| typedef enum
| {
| bqHighPass,
| bqLowPass
| }TBQType;
|
|
|
|
| typedef enum{
| bessel,
| butterworth,
| linkwitz_riley
| }eFilterType;
|
| void* alg_filter_create(int smpRate,int smpNum,TBQType bqType);
| void alg_filter_destroy(void* h);
| int alg_filter_process(void* h , const float *data_in, float *data_out);
| void alg_filter_set_param(void* h,int fc,int order,eFilterType subType,float gain);
|
|
|
| #endif /* BUTTER_H_ */
|
|