complete test-mfft memory freeing, comment out printfs
authorPaul Brossier <piem@altern.org>
Fri, 21 Jul 2006 18:10:23 +0000 (18:10 +0000)
committerPaul Brossier <piem@altern.org>
Fri, 21 Jul 2006 18:10:23 +0000 (18:10 +0000)
complete test-mfft memory freeing, comment out printfs

examples/tests/test-mfft.c

index f12a01f87a71cbade22208470cc40fec882023dc..c2ec9f7e56219209d43b834baaf89f13e235c11d 100644 (file)
@@ -1,27 +1,28 @@
 
-#include "aubio.h"
+#include <aubio.h>
 
 int main(){
         /* allocate some memory */
         uint_t win_s      = 4096;                       /* window size        */
-        uint_t channels   = 1000;                       /* number of channels */
+        uint_t channels   = 100                       /* number of channels */
         fvec_t * in       = new_fvec (win_s, channels); /* input buffer       */
         cvec_t * fftgrain = new_cvec (win_s, channels); /* fft norm and phase */
         fvec_t * out      = new_fvec (win_s, channels); /* output buffer      */
         /* allocate fft and other memory space */
         aubio_mfft_t * fft = new_aubio_mfft(win_s,channels);
         /* fill input with some data */
-        printf("initialised\n");
+        //printf("initialised\n");
         /* execute stft */
         aubio_mfft_do (fft,in,fftgrain);
-        printf("computed forward\n");
+        //printf("computed forward\n");
         /* execute inverse fourier transform */
         aubio_mfft_rdo(fft,fftgrain,out);
-        printf("computed backard\n");
+        //printf("computed backard\n");
         del_aubio_mfft(fft);
         del_fvec(in);
         del_cvec(fftgrain);
         del_fvec(out);
-        printf("memory freed\n");
+        //printf("memory freed\n");
+        aubio_cleanup();
         return 0;
 }