provide plugins with all available buffers.
[ardour.git] / libs / ardour / plugin_insert.cc
index 13ac7b375a96510426e15074e32d850b98c5f5d2..6fbb5cb67908de7f318ecc46d087b034bdff5bab 100644 (file)
@@ -352,6 +352,9 @@ PluginInsert::connect_and_run (BufferSet& bufs, pframes_t nframes, framecnt_t of
                }
        }
 
+       bufs.set_count(ChanCount::max(bufs.count(), in_streams));
+       bufs.set_count(ChanCount::max(bufs.count(), out_streams));
+
        /* Note that we've already required that plugins
           be able to handle in-place processing.
        */