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