13
0

L: use new IO PortSet API

This commit is contained in:
Robin Gareus 2024-06-25 17:38:58 +02:00
parent a1a0033748
commit c218b34f7f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View File

@ -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 ();

View File

@ -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;
}
}