shithub: aubio

Download patch

ref: 1789b0cf3cb089fab24a04b8b8c597b71e76208d
parent: 4369cb9ca99fcf17bbd0359c8ee8329ba113a482
author: Paul Brossier <piem@piem.org>
date: Thu Sep 17 03:22:34 EDT 2009

ext/midi/midi_player.c: use AUBIO_LSMP_FMT

--- a/ext/midi/midi_player.c
+++ b/ext/midi/midi_player.c
@@ -349,9 +349,9 @@
   //player->deltatime = (lsmp_t) tempo / player->division * 1.e-3; /* in milliseconds */
   player->deltatime = (lsmp_t) tempo / player->division; /* in microseconds */
 
-  AUBIO_DBG("Tempo Change: %d tempo=%f tick time=%f msec\n",
+  AUBIO_DBG("Tempo Change: %d tempo=%f tick time=" AUBIO_LSMP_FMT " msec\n",
   //    player->usec_passed, 60.*1.e6/tempo, player->deltatime);
-      player->usec_passed, 60.*1.e6/tempo, 1e-3*player->deltatime);
+      player->usec_passed, 60.*1.e6/tempo, 1.e-3*player->deltatime);
   
   return AUBIO_OK;
 }