From 82512422a7c0f4159aadc0031dead245a66761f1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 20 Nov 2022 15:06:43 +0100 Subject: [PATCH] Deliveries support mismatched chan-counts This issue was introduced in f3423b8a773, which assumed that number of input channels matches the number of outputs. With flexible I/O this is not necessarily the case. This fixes #9106, along with the previous commit. --- libs/ardour/delivery.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 19e4730062..2946d4937e 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -192,7 +192,7 @@ Delivery::set_gain_control (boost::shared_ptr gc) { if (gc) { _gain_control = gc; _amp.reset (new Amp (_session, _("Fader"), _gain_control, true)); - _amp->configure_io (_configured_input, _configured_output); + _amp->configure_io (_configured_output, _configured_output); } else { _amp.reset (); _gain_control = gc; @@ -246,7 +246,7 @@ Delivery::configure_io (ChanCount in, ChanCount out) reset_panner (); if (_amp) { - return _amp->configure_io (in, out); + return _amp->configure_io (out, out); } return true;