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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user