Browse Source

Fixed a bug handling errors when detecting hosted AU parameters

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
beb1ab8d64
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm

+ 5
- 3
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm View File

@@ -1358,9 +1358,11 @@ public:
if (audioUnit != nullptr)
{
UInt32 paramListSize = 0;
AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
0, &paramListSize, nullptr);
haveParameterList = paramListSize >= 0;
haveParameterList = AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
0, &paramListSize, nullptr) == noErr;
if (! haveParameterList)
return;
if (paramListSize > 0)
{


Loading…
Cancel
Save