L: use new IO PortSet API
This commit is contained in:
parent
a1a0033748
commit
c218b34f7f
@ -3573,7 +3573,7 @@ Route::create_direct_outs ()
|
|||||||
_direct_outs->activate ();
|
_direct_outs->activate ();
|
||||||
|
|
||||||
try {
|
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) {
|
} catch (AudioEngine::PortRegistrationFailure& err) {
|
||||||
error << string_compose (_("Cannot set up direct outs: %1"), err.what()) << endmsg;
|
error << string_compose (_("Cannot set up direct outs: %1"), err.what()) << endmsg;
|
||||||
_direct_outs.reset ();
|
_direct_outs.reset ();
|
||||||
|
@ -7960,12 +7960,12 @@ Session::livetrax_auto_connect ()
|
|||||||
|
|
||||||
n = t->input()->n_ports().n_audio();
|
n = t->input()->n_ports().n_audio();
|
||||||
for (uint32_t c = 0; c < n && ip != physinputs.end(); ++c) {
|
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;
|
++ip;
|
||||||
}
|
}
|
||||||
n = t->direct_outs()->output()->n_ports().n_audio();
|
n = t->direct_outs()->output()->n_ports().n_audio();
|
||||||
for (uint32_t c = 0; c < n && op != physoutputs.end(); ++c) {
|
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;
|
++op;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user