From 48b6a524f0e7c0f0a83e5b7568901a68408820bc Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 5 Nov 2009 23:16:29 +0100 Subject: [PATCH] tests/src/test-resample.c: indent, no #ifdef here --- tests/src/test-resample.c | 40 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/tests/src/test-resample.c b/tests/src/test-resample.c index 568bd38d..c8d08c85 100644 --- a/tests/src/test-resample.c +++ b/tests/src/test-resample.c @@ -1,28 +1,26 @@ #include #include -int main(){ -#if HAVE_SAMPLERATE - /* allocate some memory */ - uint_t win_s = 1024; /* window size */ - uint_t channels = 1; /* number of channel */ - smpl_t ratio = 0.5; - fvec_t * in = new_fvec (win_s, channels); /* input buffer */ - fvec_t * out = new_fvec ((uint_t)(win_s*ratio), channels); /* input buffer */ - aubio_resampler_t * o = new_aubio_resampler(0.5, 0); - uint_t i = 0; +int +main () +{ + /* allocate some memory */ + uint_t win_s = 1024; /* window size */ + uint_t channels = 1; /* number of channel */ + smpl_t ratio = 0.5; + fvec_t *in = new_fvec (win_s, channels); /* input buffer */ + fvec_t *out = new_fvec ((uint_t) (win_s * ratio), channels); /* input buffer */ + aubio_resampler_t *o = new_aubio_resampler (0.5, 0); + uint_t i = 0; - while (i < 10) { - aubio_resampler_do(o,in,out); - i++; - }; + while (i < 10) { + aubio_resampler_do (o, in, out); + i++; + }; - del_aubio_resampler(o); - del_fvec(in); - del_fvec(out); + del_aubio_resampler (o); + del_fvec (in); + del_fvec (out); -#else - fprintf(stderr, "aubio_resampler_t not compiled in\n"); -#endif /* HAVE_SAMPLERATE */ - return 0; + return 0; } -- 2.26.2