ref: 7778f394a03c8b1d72a7a3accfc3b8e5d5039f7b
parent: e4f142c3109be03c707aec0081c4008f2b5813e8
author: Paul Brossier <piem@piem.org>
date: Fri Oct 16 17:57:29 EDT 2009
tests/src/: update to use samplerate
--- a/tests/src/test-onset.c
+++ b/tests/src/test-onset.c
@@ -6,7 +6,7 @@
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) {
--- a/tests/src/test-tempo.c
+++ b/tests/src/test-tempo.c
@@ -7,7 +7,7 @@
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;