shithub: soundpipe

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

View raw version
typedef struct {
    struct openlpc_e_state *e;
    struct openlpc_d_state *d;
    int counter;
    short *in;
    short *out;
    unsigned char data[7];
    SPFLOAT y[7];
    SPFLOAT smooth;
    SPFLOAT samp;
    unsigned int clock;
    unsigned int block;
    int framesize;
    int mode;
    sp_ftbl *ft;
} sp_lpc;

int sp_lpc_create(sp_lpc **lpc);
int sp_lpc_destroy(sp_lpc **lpc);
int sp_lpc_init(sp_data *sp, sp_lpc *lpc, int framesize);
int sp_lpc_synth(sp_data *sp, sp_lpc *lpc, sp_ftbl *ft);
int sp_lpc_compute(sp_data *sp, sp_lpc *lpc, SPFLOAT *in, SPFLOAT *out);