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:
parent
9d1f6abe49
commit
beb1ab8d64
1 changed files with 5 additions and 3 deletions
|
|
@ -1358,9 +1358,11 @@ public:
|
|||
if (audioUnit != nullptr)
|
||||
{
|
||||
UInt32 paramListSize = 0;
|
||||
AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
|
||||
0, ¶mListSize, nullptr);
|
||||
haveParameterList = paramListSize >= 0;
|
||||
haveParameterList = AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
|
||||
0, ¶mListSize, nullptr) == noErr;
|
||||
|
||||
if (! haveParameterList)
|
||||
return;
|
||||
|
||||
if (paramListSize > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue