13
0

Use derived pan_outs() when panner setup is deferred, to

make it the same as when it is done immediately.  Fixes
part of #4190.


git-svn-id: svn://localhost/ardour2/branches/3.0@10069 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-09-12 15:05:43 +00:00
parent 14e083001d
commit bced7c250e

View File

@ -409,16 +409,8 @@ Delivery::reset_panner ()
int
Delivery::panners_became_legal ()
{
uint32_t ntargets;
if (_output) {
ntargets = _output->n_ports().n_audio();
} else {
ntargets = _configured_output.n_audio();
}
if (_panshell) {
_panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, ntargets));
_panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, pan_outs()));
if (_role == Main) {
_panshell->pannable()->set_panner (_panshell->panner());