From cda5b48b968d76f984cf87de42c39d1915f6b9cf Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Apr 2016 22:21:00 +0200 Subject: 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) --- libs/ardour/ladspa_plugin.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libs/ardour/ladspa_plugin.cc') diff --git a/libs/ardour/ladspa_plugin.cc b/libs/ardour/ladspa_plugin.cc index 40d8b68951..d0d3ad57ba 100644 --- a/libs/ardour/ladspa_plugin.cc +++ b/libs/ardour/ladspa_plugin.cc @@ -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]; } } -- cgit v1.2.3