From: Paul Brossier Date: Thu, 6 Sep 2007 16:02:28 +0000 (+0200) Subject: test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns... X-Git-Tag: bzr2git~519 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fadb0d573fb7a34f852f0b6ba13e4fe6a40f402;p=aubio.git test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns 0 on silent frames --- 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++; };