shithub: soundpipe

ref: f6d97317c22b5d2e703844728a3f41b6bc3a74a4
dir: /h/smoother.h/

View raw version
typedef struct{
    SPFLOAT smooth;
    SPFLOAT a1, b0, y0, psmooth;
    SPFLOAT onedsr;
}sp_smoother;

int sp_smoother_create(sp_smoother **p);
int sp_smoother_destroy(sp_smoother **p);
int sp_smoother_init(sp_data *sp, sp_smoother *p);
int sp_smoother_compute(sp_data *sp, sp_smoother *p, SPFLOAT *in, SPFLOAT *out);
int sp_smoother_reset(sp_data *sp, sp_smoother *p, SPFLOAT *in);