diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-27 19:08:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-27 19:08:29 +0200 |
commit | fee54fb1552db2a5df110b285d5a7489be99ba21 (patch) | |
tree | 58f0f3c2bd02b1f1d0cb686a4057f999ffc544e9 | |
parent | 22bc62ed4360aaea29c131cc7dead87fa25ef228 (diff) |
fix LV2 freewheeling port, explicit cast bool to float.
http://lv2plug.in/ns/lv2core/#freeWheeling mentions "true"
and http://lv2plug.in/ns/lv2core/#toggled defines true as > 0.
false as <= 0.
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index c12e4930d5..9bf33d60d4 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1922,7 +1922,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs, TempoMetric tmetric = tmap.metric_at(_session.transport_frame(), &metric_i); if (_freewheel_control_port) { - *_freewheel_control_port = _session.engine().freewheeling(); + *_freewheel_control_port = _session.engine().freewheeling() ? 1.f : 0.f; } if (_bpm_control_port) { |