Browse Source

Add AudioUnit Multi-Output support

tags/2021-05-28
hogliux 10 years ago
parent
commit
a760a1feb2
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 25
- 0
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -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…
Cancel
Save