From f269e39115934c8e48dbc66e495d8cfdba1e70f0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 26 Mar 2016 15:52:32 +0100 Subject: [PATCH] strict i/o: limit output channels. --- libs/ardour/plugin_insert.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index b174ceb2fe..09bd8ff41b 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -473,6 +473,7 @@ PluginInsert::connect_and_run (BufferSet& bufs, pframes_t nframes, framecnt_t of } } + // TODO use map_offset_to() instead ?? backmap = mapped; // map outputs @@ -490,6 +491,7 @@ PluginInsert::connect_and_run (BufferSet& bufs, pframes_t nframes, framecnt_t of } // clear output buffers + // TODO only clear buffers that are not connected, but configured bufs.silence (nframes, offset); // copy back outputs @@ -1015,7 +1017,7 @@ PluginInsert::private_can_support_io_configuration (ChanCount const & inx, ChanC } if (could_hide && !cannot_hide) { - if (_strict_io && inputs.get (DataType::AUDIO) == outputs.get (DataType::AUDIO)) { + if (_strict_io /*&& inputs.get (DataType::AUDIO) == outputs.get (DataType::AUDIO)*/) { _strict_io_configured = true; outputs = inputs; } else {