mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Add AudioUnit Multi-Output support
This commit is contained in:
parent
98ebfdc1fa
commit
a760a1feb2
1 changed files with 25 additions and 0 deletions
|
|
@ -504,6 +504,31 @@ public:
|
|||
return numChannelConfigs;
|
||||
}
|
||||
|
||||
UInt32 GetAudioChannelLayout (AudioUnitScope scope,
|
||||
AudioUnitElement element,
|
||||
AudioChannelLayout *outLayoutPtr,
|
||||
Boolean &outWritable)
|
||||
{
|
||||
if (element == 0)
|
||||
{
|
||||
outWritable = true;
|
||||
if (scope == kAudioUnitScope_Output)
|
||||
{
|
||||
return static_cast<UInt32> (findNumOutputChannels());
|
||||
}
|
||||
else if (scope == kAudioUnitScope_Input)
|
||||
{
|
||||
#if JucePlugin_IsSynth
|
||||
return 0;
|
||||
#else
|
||||
return static_cast<UInt32> (findNumInputChannels());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
return JuceAUBaseClass::GetAudioChannelLayout(scope, element, outLayoutPtr, outWritable);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
ComponentResult GetParameterInfo (AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue