mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 10:06:33 +01:00
Make main out delivery expand its output ports if the processor chain requires it.
git-svn-id: svn://localhost/ardour2/branches/3.0@7333 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ff51abb988
commit
4d80bdad7d
1 changed files with 3 additions and 3 deletions
|
|
@ -137,7 +137,8 @@ Delivery::can_support_io_configuration (const ChanCount& in, ChanCount& out) con
|
||||||
|
|
||||||
if (_output) {
|
if (_output) {
|
||||||
if (_output->n_ports() != ChanCount::ZERO) {
|
if (_output->n_ports() != ChanCount::ZERO) {
|
||||||
out = _output->n_ports();
|
/* increase number of output ports if the processor chain requires it */
|
||||||
|
out = ChanCount::max (_output->n_ports(), in);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
/* not configured yet - we will passthru */
|
/* not configured yet - we will passthru */
|
||||||
|
|
@ -189,8 +190,7 @@ Delivery::configure_io (ChanCount in, ChanCount out)
|
||||||
if (_output) {
|
if (_output) {
|
||||||
if (_output->n_ports() != out) {
|
if (_output->n_ports() != out) {
|
||||||
if (_output->n_ports() != ChanCount::ZERO) {
|
if (_output->n_ports() != ChanCount::ZERO) {
|
||||||
fatal << _name << " programming error: configure_io with nports = " << _output->n_ports() << " called with " << in << " and " << out << " with " << _output->n_ports() << " output ports" << endmsg;
|
_output->ensure_io (out, false, this);
|
||||||
/*NOTREACHED*/
|
|
||||||
} else {
|
} else {
|
||||||
/* I/O not yet configured */
|
/* I/O not yet configured */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue