test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns...
authorPaul Brossier <piem@piem.org>
Thu, 6 Sep 2007 16:02:28 +0000 (18:02 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 6 Sep 2007 16:02:28 +0000 (18:02 +0200)
examples/tests/test-beattracking.c

index 7578469a7ee9cc76dc58423a0f8527896dade0c3..20fc6b0a874b72c0e858a45e47020e7f645a454a 100644 (file)
@@ -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++;
         };