diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-26 22:21:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-26 22:21:00 +0200 |
commit | cda5b48b968d76f984cf87de42c39d1915f6b9cf (patch) | |
tree | d49625dd921f96c353882d3b8e13b77c0e4761e8 /libs | |
parent | 4b8bc84e4a5236ce2acaf6fc245c9c213a1c4969 (diff) |
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)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ladspa_plugin.cc | 5 |
1 files changed, 1 insertions, 4 deletions
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]; } } |