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
38
39
40
41
42
43
44
|
#ifndef __EQU_H
#define __EQU_H
#ifdef __cplusplus
extern "C" {
#endif
#define ENABLE_REAL 1
#define ENABLE_INT 0
typedef float REAL;
typedef struct {
REAL *lires,*lires1,*lires2,*rires,*rires1,*rires2,*irest;
REAL *fsamples;
REAL *ditherbuf;
int ditherptr;
volatile int chg_ires,cur_ires;
int winlen,winlenbit,tabsize,nbufsamples;
#if ENABLE_INT
short *inbuf;
#endif
#if ENABLE_REAL
REAL *finbuf;
#endif
REAL *outbuf;
int maxamp;
int dither;
int enable;
} SuperEqState;
void *paramlist_alloc (void);
void paramlist_free (void *);
void equ_makeTable(SuperEqState *state, float *lbc,float *rbc,void *param,float fs);
int equ_modifySamples(SuperEqState *state, char *buf,int nsamples,int nch,int bps);
int equ_modifySamples_float (SuperEqState *state, char *buf,int nsamples,int nch);
void equ_clearbuf(SuperEqState *state);
void equ_init(SuperEqState *state, int wb);
void equ_quit(SuperEqState *state);
#ifdef __cplusplus
}
#endif
#endif
|