From 6fadb0d573fb7a34f852f0b6ba13e4fe6a40f402 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 6 Sep 2007 18:02:28 +0200 Subject: [PATCH] test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns 0 on silent frames --- examples/tests/test-beattracking.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/tests/test-beattracking.c b/examples/tests/test-beattracking.c index 7578469a..20fc6b0a 100644 --- a/examples/tests/test-beattracking.c +++ b/examples/tests/test-beattracking.c @@ -12,8 +12,15 @@ int main(){ uint_t i = 0; + smpl_t curtempo; + while (i < 10) { aubio_beattracking_do(tempo,in,out); + curtempo = aubio_beattracking_get_bpm(tempo); + if (curtempo != 0.) { + fprintf(stdout,"%f\n",curtempo); + return 1; + } i++; }; -- 2.26.2