13
0

take buffers for Split/Match into account fixes #6334

This commit is contained in:
Robin Gareus 2015-05-18 16:14:07 +02:00
parent e73b4e6f55
commit 8287bdad1b

View File

@ -1896,6 +1896,14 @@ Route::configure_processors_unlocked (ProcessorStreams* err)
(*p)->configure_io(c->first, c->second);
processor_max_streams = ChanCount::max(processor_max_streams, c->first);
processor_max_streams = ChanCount::max(processor_max_streams, c->second);
boost::shared_ptr<PluginInsert> pi;
if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*p)) != 0) {
/* plugins connected via Split Match may have more channels.
* route/scratch buffers are needed for all of them*/
processor_max_streams = ChanCount::max(processor_max_streams, pi->input_streams());
processor_max_streams = ChanCount::max(processor_max_streams, pi->natural_input_streams());
}
out = c->second;
if (boost::dynamic_pointer_cast<Delivery> (*p)