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:
parent
0fb62bd240
commit
7e3aae3cb9
1 changed files with 3 additions and 10 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue