shithub: soundpipe

ref: bbfeadd2e4c2c311ed1a71548c0faafc874a9afa
dir: /h/phasor.h/

View raw version
typedef struct sp_phasor{
    SPFLOAT freq, phs;
    SPFLOAT onedsr;
} sp_phasor;

int sp_phasor_create(sp_phasor **p);
int sp_phasor_destroy(sp_phasor **p);
int sp_phasor_init(sp_data *sp, sp_phasor *p, SPFLOAT iphs);
int sp_phasor_compute(sp_data *sp, sp_phasor *p, SPFLOAT *in, SPFLOAT *out);