diff options
author | David Robillard <d@drobilla.net> | 2013-01-05 21:09:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-05 21:09:41 +0000 |
commit | a6d49b5f63223979747b1146bd6a6cb8f6f1c189 (patch) | |
tree | 48e9bd1bc20f0bf9a57948b3ac941da608fa10df /libs/ardour/lv2_plugin.cc | |
parent | 46d884ff16072655627bbc626d0fe88c56629f86 (diff) |
Send LV2 time properties with correct types from specification.
git-svn-id: svn://localhost/ardour2/branches/3.0@13791 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 4 |
1 files 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); |