tests/src: include stdio.h as needed, add HAVE_LIBSAMPLERATE
authorPaul Brossier <piem@piem.org>
Thu, 1 Oct 2009 06:22:29 +0000 (08:22 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 1 Oct 2009 06:22:29 +0000 (08:22 +0200)
tests/src/test-beattracking.c
tests/src/test-resample.c
tests/src/test-tempo.c
tests/src/test-tss.c

index 2812a3b..a14f304 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <aubio.h>
 
 int main(){
index 48a5055..598f05b 100644 (file)
@@ -1,6 +1,7 @@
 #include <aubio.h>
 
 int main(){
+#if HAVE_LIBSAMPLERATE
         /* allocate some memory */
         uint_t win_s      = 1024;                       /* window size */
         uint_t channels   = 1;                          /* number of channel */
@@ -19,5 +20,6 @@ int main(){
         del_fvec(in);
         del_fvec(out);
 
+#endif /* HAVE_LIBSAMPLERATE */
         return 0;
 }
index 19abf68..0b71333 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <aubio.h>
 
 int main(){
index a9cc335..4e8bd4c 100644 (file)
@@ -5,6 +5,7 @@
  * a delay equal to the window size, hop_s.
  */
 
+#include <stdio.h>
 #include <aubio.h>
 
 int main(){