From 7778f394a03c8b1d72a7a3accfc3b8e5d5039f7b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 16 Oct 2009 21:57:29 +0200 Subject: [PATCH] tests/src/: update to use samplerate --- tests/src/test-onset.c | 2 +- tests/src/test-tempo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.26.2