shithub: soundpipe

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

View raw version
typedef struct {
    SPFLOAT *buf;
    uint32_t pos;
    uint32_t bufsize;
    sp_audio spa;
} sp_spa;

int sp_spa_create(sp_spa **p);
int sp_spa_destroy(sp_spa **p);
int sp_spa_init(sp_data *sp, sp_spa *p, const char *filename);
int sp_spa_compute(sp_data *sp, sp_spa *p, SPFLOAT *in, SPFLOAT *out);