shithub: aubio

Download patch

ref: 2e50800865012262a3705344ee2487a7253396c1
parent: ba0ba1066d77d8c8c1ddcf16c2661ed65a52375d
author: Paul Brossier <piem@piem.org>
date: Wed Dec 4 16:44:30 EST 2013

tests/src/io/test-source_sndfile.c: use source samplerate, print read samples

--- a/tests/src/io/test-source_sndfile.c
+++ b/tests/src/io/test-source_sndfile.c
@@ -17,7 +17,7 @@
   }
 
 #ifdef HAVE_SNDFILE
-  uint_t samplerate = 32000;
+  uint_t samplerate = 0;
   uint_t hop_size = 256;
   uint_t n_frames = 0, read = 0;
   if ( argc == 3 ) samplerate = atoi(argv[2]);
@@ -32,7 +32,7 @@
 
   do {
     aubio_source_sndfile_do(s, vec, &read);
-    // fvec_print (vec);
+    fvec_print (vec);
     n_frames += read;
   } while ( read == hop_size );