shithub: soundpipe

ref: 29851f9c445d41cd82e422cb4b8c13fd2a13aea5
dir: /h/clamp.h/

View raw version
typedef struct {
    SPFLOAT min;
    SPFLOAT max;
} sp_clamp;

int sp_clamp_create(sp_clamp **p);
int sp_clamp_destroy(sp_clamp **p);
int sp_clamp_init(sp_data *sp, sp_clamp *p);
int sp_clamp_compute(sp_data *sp, sp_clamp *p, SPFLOAT *in, SPFLOAT *out);