1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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; const auto hasInOutMismatch = std::any_of (supportedChannels.begin(),
supportedChannels.end(),
for (const auto& supported : supportedChannels) [] (const Channels& x) { return x.ins != x.outs; });
{
if (supported.ins != supported.outs)
{
hasInOutMismatch = true;
break;
}
}
const auto computeHasUnsupportedLayout = [&] (bool isInput) const auto computeHasUnsupportedLayout = [&] (bool isInput)
{ {