mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
fix plugin analysis for variable i/o plugins
This commit is contained in:
parent
205fbb99ad
commit
d8a97789c1
1 changed files with 8 additions and 1 deletions
|
|
@ -2862,7 +2862,14 @@ PluginInsert::get_impulse_analysis_plugin()
|
||||||
// during init() -- most notably block_size..
|
// during init() -- most notably block_size..
|
||||||
// not great.
|
// not great.
|
||||||
ret = plugin_factory(_plugins[0]);
|
ret = plugin_factory(_plugins[0]);
|
||||||
ret->configure_io (internal_input_streams (), internal_output_streams ());
|
ChanCount out (internal_output_streams ());
|
||||||
|
if (ret->get_info ()->reconfigurable_io ()) {
|
||||||
|
// populate get_info ()->n_inputs and ->n_outputs
|
||||||
|
ChanCount useins;
|
||||||
|
ret->can_support_io_configuration (internal_input_streams (), out, &useins);
|
||||||
|
assert (out == internal_output_streams ());
|
||||||
|
}
|
||||||
|
ret->configure_io (internal_input_streams (), out);
|
||||||
_impulseAnalysisPlugin = ret;
|
_impulseAnalysisPlugin = ret;
|
||||||
} else {
|
} else {
|
||||||
ret = _impulseAnalysisPlugin.lock();
|
ret = _impulseAnalysisPlugin.lock();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue