summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-05 21:10:08 +0000
committerDavid Robillard <d@drobilla.net>2013-01-05 21:10:08 +0000
commit20972937dcd536c280bb54c10c5e4af0cbf86b6c (patch)
treef0f965b6f7c274ad0c3bb600bdd7b538b5928992
parent306b99fa5e7e18c24bb8e1ffa828ae35037174da (diff)
downloadingen-20972937dcd536c280bb54c10c5e4af0cbf86b6c.tar.gz
ingen-20972937dcd536c280bb54c10c5e4af0cbf86b6c.tar.bz2
ingen-20972937dcd536c280bb54c10c5e4af0cbf86b6c.zip
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
-rw-r--r--src/server/JackDriver.cpp4
1 files changed, 2 insertions, 2 deletions
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);