diff options
Diffstat (limited to 'plugins/supereq/Equ.h')
-rw-r--r-- | plugins/supereq/Equ.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/supereq/Equ.h b/plugins/supereq/Equ.h new file mode 100644 index 00000000..3018c411 --- /dev/null +++ b/plugins/supereq/Equ.h @@ -0,0 +1,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 |