From: Paul Brossier Date: Thu, 8 Oct 2009 10:07:12 +0000 (+0200) Subject: tests/src/test-resample.c: run 10 times, update defines X-Git-Tag: bzr2git~162 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9daf0183f0a28b112be50bb3282a66699ee59b5d;p=aubio.git tests/src/test-resample.c: run 10 times, update defines --- diff --git a/tests/src/test-resample.c b/tests/src/test-resample.c index 598f05b5..568bd38d 100644 --- a/tests/src/test-resample.c +++ b/tests/src/test-resample.c @@ -1,7 +1,8 @@ +#include #include int main(){ -#if HAVE_LIBSAMPLERATE +#if HAVE_SAMPLERATE /* allocate some memory */ uint_t win_s = 1024; /* window size */ uint_t channels = 1; /* number of channel */ @@ -11,8 +12,8 @@ int main(){ aubio_resampler_t * o = new_aubio_resampler(0.5, 0); uint_t i = 0; - while (i < 100) { - aubio_resampler_process(o,in,out); + while (i < 10) { + aubio_resampler_do(o,in,out); i++; }; @@ -20,6 +21,8 @@ int main(){ del_fvec(in); del_fvec(out); -#endif /* HAVE_LIBSAMPLERATE */ +#else + fprintf(stderr, "aubio_resampler_t not compiled in\n"); +#endif /* HAVE_SAMPLERATE */ return 0; }