1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fixed a bug handling errors when detecting hosted AU parameters

This commit is contained in:
Tom Poole 2019-04-04 11:03:26 +01:00
parent 9d1f6abe49
commit beb1ab8d64

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)
{