aboutsummaryrefslogtreecommitdiff
path: root/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'fft.c')
-rw-r--r--fft.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fft.c b/fft.c
index 5d02291..a13eaad 100644
--- a/fft.c
+++ b/fft.c
@@ -92,3 +92,12 @@ dofft(struct fft *p, int16_t *data, double *left, double *right, int n, float sc
return 0;
}
+
+void
+del_fft(struct fft *fft)
+{
+ fftw_free(fft->in);
+ fftw_free(fft->out);
+ free(fft->window);
+ free(fft);
+}