From 9daf0183f0a28b112be50bb3282a66699ee59b5d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 12:07:12 +0200 Subject: [PATCH] tests/src/test-resample.c: run 10 times, update defines --- tests/src/test-resample.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; } -- 2.26.2