aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-09-21 08:36:37 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-09-21 08:36:37 +0200
commite995aff05b6d89a92caa91af9df3c78ae07d7f99 (patch)
treeb07342e21b20daa31998fa09d6d4f545da0c5b94 /test
parent81d266bb166a01aa8160886d0100eeb4660a2ebc (diff)
downloadtracker.lv2-e995aff05b6d89a92caa91af9df3c78ae07d7f99.zip
tracker.lv2-e995aff05b6d89a92caa91af9df3c78ae07d7f99.tar.gz
tracker.lv2-e995aff05b6d89a92caa91af9df3c78ae07d7f99.tar.bz2
tracker.lv2-e995aff05b6d89a92caa91af9df3c78ae07d7f99.tar.xz
make TIMELY_MASK_FRAME less verbose.
Diffstat (limited to 'test')
-rw-r--r--test/timely.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/timely.c b/test/timely.c
index dbee9b9..171fc9d 100644
--- a/test/timely.c
+++ b/test/timely.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <inttypes.h>
#include <timely.h>
@@ -81,7 +82,8 @@ _timely_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
else if(type == TIMELY_URI_SPEED(timely))
uri = LV2_TIME__speed;
- _log_printf(data, handle->log_trace, "%4li %s (%i)", frames, uri, type);
+ const int64_t frame = TIMELY_FRAME(timely);
+ _log_printf(data, handle->log_trace, "0x%08"PRIx64" %4"PRIi64" %s (%i)", frame, frames, uri, type);
}
static LV2_Handle
@@ -122,7 +124,7 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
| TIMELY_MASK_BEAT_UNIT
| TIMELY_MASK_BEATS_PER_BAR
| TIMELY_MASK_BEATS_PER_MINUTE
- //| TIMELY_MASK_FRAME
+ | TIMELY_MASK_FRAME
| TIMELY_MASK_FRAMES_PER_SECOND
| TIMELY_MASK_SPEED
| TIMELY_MASK_BAR_BEAT_WHOLE