From fee54fb1552db2a5df110b285d5a7489be99ba21 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Jul 2015 19:08:29 +0200 Subject: [PATCH] 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. --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {