mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
allocate buffers for all possible plugin configurations
This commit is contained in:
parent
5291fba919
commit
d5c1ea11c3
1 changed files with 6 additions and 2 deletions
|
|
@ -2161,10 +2161,14 @@ Route::configure_processors_unlocked (ProcessorStreams* err)
|
||||||
|
|
||||||
boost::shared_ptr<PluginInsert> pi;
|
boost::shared_ptr<PluginInsert> pi;
|
||||||
if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*p)) != 0) {
|
if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*p)) != 0) {
|
||||||
/* plugins connected via Split Match may have more channels.
|
/* plugins connected via Split or Hide Match may have more channels.
|
||||||
* route/scratch buffers are needed for all of them*/
|
* route/scratch buffers are needed for all of them
|
||||||
|
* The configuration may only be a subset (both input and output)
|
||||||
|
*/
|
||||||
processor_max_streams = ChanCount::max(processor_max_streams, pi->input_streams());
|
processor_max_streams = ChanCount::max(processor_max_streams, pi->input_streams());
|
||||||
|
processor_max_streams = ChanCount::max(processor_max_streams, pi->output_streams());
|
||||||
processor_max_streams = ChanCount::max(processor_max_streams, pi->natural_input_streams());
|
processor_max_streams = ChanCount::max(processor_max_streams, pi->natural_input_streams());
|
||||||
|
processor_max_streams = ChanCount::max(processor_max_streams, pi->natural_output_streams());
|
||||||
}
|
}
|
||||||
out = c->second;
|
out = c->second;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue