tests/src/: update to use samplerate
authorPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 19:57:29 +0000 (21:57 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 16 Oct 2009 19:57:29 +0000 (21:57 +0200)
tests/src/test-onset.c
tests/src/test-tempo.c

index 93ded23ef66a0cfefd96d6e1fd6c77377154513d..db94669a23f031b06695f014d6030be144f65a4b 100644 (file)
@@ -6,7 +6,7 @@ int main(){
         uint_t channels   = 1;                          /* number of channel */
         fvec_t * in       = new_fvec (win_s/4, channels); /* input buffer */
         fvec_t * out      = new_fvec (2, channels);     /* input buffer */
-        aubio_onset_t * onset  = new_aubio_onset("complex", win_s, win_s/4, channels);
+        aubio_onset_t * onset  = new_aubio_onset("complex", win_s, win_s/4, channels, 44100.);
         uint_t i = 0;
 
         while (i < 10) {
index fb4d2f3ce2e954d0994fa05eed363c3fb9710857..b2d636acf260b172bf4b6ee36b0f30792ffd5498 100644 (file)
@@ -7,7 +7,7 @@ int main(){
         uint_t channels   = 1;                          /* number of channel */
         fvec_t * in       = new_fvec (win_s, channels); /* input buffer */
         fvec_t * out      = new_fvec (2, channels);     /* input buffer */
-        aubio_tempo_t * o  = new_aubio_tempo("complex", win_s, win_s/4, channels);
+        aubio_tempo_t * o  = new_aubio_tempo("complex", win_s, win_s/4, channels, 44100.);
         uint_t i = 0;
 
         smpl_t curtempo, curtempoconf;