From a6d49b5f63223979747b1146bd6a6cb8f6f1c189 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 5 Jan 2013 21:09:41 +0000 Subject: [PATCH] Send LV2 time properties with correct types from specification. git-svn-id: svn://localhost/ardour2/branches/3.0@13791 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/lv2_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 2f5364d7f6..3c557b7d2f 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1447,9 +1447,9 @@ write_position(LV2_Atom_Forge* forge, lv2_atom_forge_float(forge, bbt.beats - 1 + (bbt.ticks / Timecode::BBT_Time::ticks_per_beat)); lv2_atom_forge_property_head(forge, LV2Plugin::urids.time_bar, 0); - lv2_atom_forge_float(forge, bbt.bars - 1); + lv2_atom_forge_long(forge, bbt.bars - 1); lv2_atom_forge_property_head(forge, LV2Plugin::urids.time_beatUnit, 0); - lv2_atom_forge_float(forge, t.meter().note_divisor()); + lv2_atom_forge_int(forge, t.meter().note_divisor()); lv2_atom_forge_property_head(forge, LV2Plugin::urids.time_beatsPerBar, 0); lv2_atom_forge_float(forge, t.meter().divisions_per_bar()); lv2_atom_forge_property_head(forge, LV2Plugin::urids.time_beatsPerMinute, 0);