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.
This commit is contained in:
Robin Gareus 2015-07-27 19:08:29 +02:00
parent 22bc62ed43
commit fee54fb155

View file

@ -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) {