initialize output data ports for cases where the plugin is not run

(e.g. load session with inactive track, or instantiate an audio plugin
on a midi track before the synth)
This commit is contained in:
Robin Gareus
2016-04-26 22:21:00 +02:00
parent 4b8bc84e4a
commit cda5b48b96

View File

@@ -141,11 +141,8 @@ LadspaPlugin::init (string module_path, uint32_t index, framecnt_t rate)
*_latency_control_port = 0;
}
if (!LADSPA_IS_PORT_INPUT(port_descriptor (i))) {
continue;
}
_shadow_data[i] = _default_value (i);
_control_data[i] = _shadow_data[i];
}
}