From 067b81d0bf890f744db87e6560a653e43f2c808f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 Dec 2011 17:57:50 +0000 Subject: [PATCH] Remove unnecessary silencing of unused plugin inputs; unnecessary as (LADSPA/LV2 at least) connect_and_run routines pass in silent buffers for inputs that are not in the ChanMapping. The explicit silencing also failed if the plugin had more inputs than any processor on the route (fixes #4535). git-svn-id: svn://localhost/ardour2/branches/3.0@10949 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/plugin_insert.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index dd9e8d5dcf..1d8581af39 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -346,15 +346,6 @@ PluginInsert::connect_and_run (BufferSet& bufs, pframes_t nframes, framecnt_t of } } - if (_match.method == Hide) { - /* Silence the hidden input buffers */ - for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) { - for (uint32_t i = in_streams.get(*t); i < (in_streams.get(*t) + _match.hide.get(*t)); ++i) { - bufs.get(*t, i).silence (nframes); - } - } - } - /* Note that we've already required that plugins be able to handle in-place processing. */