1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

AU: Refactor getAUChannelInfo to make mismatch checking more concise

This commit is contained in:
reuk 2025-08-05 12:36:03 +01:00
parent 0fb62bd240
commit 7e3aae3cb9
No known key found for this signature in database

View file

@ -429,16 +429,9 @@ struct AudioUnitHelpers
}
}
auto hasInOutMismatch = false;
for (const auto& supported : supportedChannels)
{
if (supported.ins != supported.outs)
{
hasInOutMismatch = true;
break;
}
}
const auto hasInOutMismatch = std::any_of (supportedChannels.begin(),
supportedChannels.end(),
[] (const Channels& x) { return x.ins != x.outs; });
const auto computeHasUnsupportedLayout = [&] (bool isInput)
{