shithub: soundpipe

ref: 2e86b938c226edc0d8bd6c3855baf3bec02b5179
dir: /h/clock.h/

View raw version
typedef struct {
    SPFLOAT bpm;
    SPFLOAT subdiv;
    uint32_t counter;
} sp_clock;

int sp_clock_create(sp_clock **p);
int sp_clock_destroy(sp_clock **p);
int sp_clock_init(sp_data *sp, sp_clock *p);
int sp_clock_compute(sp_data *sp, sp_clock *p, SPFLOAT *trig, SPFLOAT *out);