From c218b34f7f48276321656f2cb0368ca885be7527 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 25 Jun 2024 17:38:58 +0200 Subject: [PATCH] L: use new IO PortSet API --- libs/ardour/route.cc | 2 +- libs/ardour/session.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5284ec6fa6..cb7a2e68dd 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -3573,7 +3573,7 @@ Route::create_direct_outs () _direct_outs->activate (); try { - _direct_outs->output()->ensure_io (ChanCount (DataType::AUDIO, input()->ports().num_ports(DataType::AUDIO)), false, this); + _direct_outs->output()->ensure_io (ChanCount (DataType::AUDIO, input()->ports()->num_ports(DataType::AUDIO)), false, this); } catch (AudioEngine::PortRegistrationFailure& err) { error << string_compose (_("Cannot set up direct outs: %1"), err.what()) << endmsg; _direct_outs.reset (); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 9581894e39..7eeb17288d 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -7960,12 +7960,12 @@ Session::livetrax_auto_connect () n = t->input()->n_ports().n_audio(); for (uint32_t c = 0; c < n && ip != physinputs.end(); ++c) { - t->input()->connect (t->input()->ports().port (DataType::AUDIO, c), *ip, this); + t->input()->connect (t->input()->ports()->port (DataType::AUDIO, c), *ip, this); ++ip; } n = t->direct_outs()->output()->n_ports().n_audio(); for (uint32_t c = 0; c < n && op != physoutputs.end(); ++c) { - t->direct_outs()->output()->ports().port (DataType::AUDIO, c)->connect (*op); + t->direct_outs()->output()->ports()->port (DataType::AUDIO, c)->connect (*op); ++op; } }