13
0

L: Correctly setup channel bitmask (amend d752b31245)

This commit is contained in:
Robin Gareus 2024-05-07 00:49:25 +02:00
parent 46315cde57
commit 3562bac5ed
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 1 deletions

View File

@ -1076,7 +1076,11 @@ AudioEngine::start (bool for_latency)
if (!for_latency) {
/* Do this here so we do not have to add it to every backend */
_backend->setup_channel_masks (_backend->input_channels(), _backend->output_channels());
vector<string> i;
vector<string> o;
_backend->get_physical_inputs (DataType::AUDIO, i);
_backend->get_physical_outputs (DataType::AUDIO, o);
_backend->setup_channel_masks (i.size (), o.size ());
/* Call the library-wide ::init_post_engine() before emitting
* running to ensure that its tasks are complete before any

View File

@ -7864,6 +7864,8 @@ Session::livetrax_auto_connect (std::shared_ptr<Route> route)
size_t attempts = 0;
size_t limit = physinputs.size();
assert (physinputs.size() <= input_channel_mask.size());
while (attempts < limit) {
ichn = n % physinputs.size();