#ifndef TRANSFORM_H #define TRANSFORM_H #include #include typedef struct Transform Transform; typedef void (* TransformCallback)(fftwf_complex *freqdata, void *data); Transform * transform_new(int fftsize, TransformCallback callback, void *data); void transform_destroy(Transform *self); /* Processes fftsize/2 input frames, calls callback with the freqdata, and fills output with fftsize/2 frames */ void transform_process(Transform *self, int16_t *input, int16_t *output); #endif // TRANSFORM_H