From: Paul Brossier Date: Fri, 21 Jul 2006 18:14:00 +0000 (+0000) Subject: complete test-phasevoc-jack memory freeing, use sleep instead of pause X-Git-Tag: bzr2git~607 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e20db8baa091e6e98b59d9c7ad86f0395704c89;p=aubio.git complete test-phasevoc-jack memory freeing, use sleep instead of pause complete test-phasevoc-jack memory freeing, use sleep instead of pause --- diff --git a/examples/tests/test-phasevoc-jack.c b/examples/tests/test-phasevoc-jack.c index 8ae1ec67..e122a303 100644 --- a/examples/tests/test-phasevoc-jack.c +++ b/examples/tests/test-phasevoc-jack.c @@ -5,15 +5,15 @@ * a delay equal to the window size, hop_s. */ -#include /* pause() */ -#include "aubio.h" -#include "aubioext.h" +#include /* pause() or sleep() */ +#include +#include uint_t win_s = 32; /* window size */ uint_t hop_s = 8; /* hop size */ -uint_t channels = 4; /* number of channels */ -uint_t pos = 0; /* frames%dspblocksize for jack loop */ -uint_t usejack = 1; +uint_t channels = 4; /* number of channels */ +uint_t pos = 0; /* frames%dspblocksize for jack loop */ +uint_t usejack = 1; fvec_t * in; cvec_t * fftgrain; @@ -45,11 +45,15 @@ int main(){ jack_setup = new_aubio_jack(channels, channels, (aubio_process_func_t)aubio_process); aubio_jack_activate(jack_setup); - pause(); /* enter main jack loop */ + sleep(10); //pause(); /* enter main jack loop */ aubio_jack_close(jack_setup); } del_aubio_pvoc(pv); + del_cvec(fftgrain); + del_fvec(in); + del_fvec(out); + aubio_cleanup(); printf("memory freed\n"); return 0; }