From 20972937dcd536c280bb54c10c5e4af0cbf86b6c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 5 Jan 2013 21:10:08 +0000 Subject: Send LV2 time properties with correct types from specification. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4900 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/JackDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index fd6b2631..21f2656f 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -377,9 +377,9 @@ JackDriver::append_time_events(ProcessContext& context, lv2_atom_forge_float( &_forge, pos->beat - 1 + (pos->tick / pos->ticks_per_beat)); lv2_atom_forge_property_head(&_forge, uris.time_bar, 0); - lv2_atom_forge_float(&_forge, pos->bar - 1); + lv2_atom_forge_long(&_forge, pos->bar - 1); lv2_atom_forge_property_head(&_forge, uris.time_beatUnit, 0); - lv2_atom_forge_float(&_forge, pos->beat_type); + lv2_atom_forge_int(&_forge, pos->beat_type); lv2_atom_forge_property_head(&_forge, uris.time_beatsPerBar, 0); lv2_atom_forge_float(&_forge, pos->beats_per_bar); lv2_atom_forge_property_head(&_forge, uris.time_beatsPerMinute, 0); -- cgit v1.2.1