From: Paul Brossier Date: Fri, 16 Oct 2009 19:57:29 +0000 (+0200) Subject: tests/src/: update to use samplerate X-Git-Tag: bzr2git~113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7778f394a03c8b1d72a7a3accfc3b8e5d5039f7b;p=aubio.git tests/src/: update to use samplerate --- diff --git a/tests/src/test-onset.c b/tests/src/test-onset.c index 93ded23e..db94669a 100644 --- a/tests/src/test-onset.c +++ b/tests/src/test-onset.c @@ -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) { diff --git a/tests/src/test-tempo.c b/tests/src/test-tempo.c index fb4d2f3c..b2d636ac 100644 --- a/tests/src/test-tempo.c +++ b/tests/src/test-tempo.c @@ -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;