Deliveries support mismatched chan-counts

This issue was introduced in f3423b8a77, 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.
This commit is contained in:
Robin Gareus 2022-11-20 15:06:43 +01:00
parent 4448b3a2a9
commit 82512422a7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ Delivery::set_gain_control (boost::shared_ptr<GainControl> 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;