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

Plugin hosting: Fixed a problem getting the list of AU parameters

This commit is contained in:
jules 2015-12-16 17:18:57 +00:00
parent d9403b6785
commit 1fe45f3d41

View file

@ -841,9 +841,9 @@ public:
if (audioUnit != nullptr)
{
UInt32 dummy = 0, paramListSize = 0;
AudioUnitGetProperty (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
0, &dummy, &paramListSize);
UInt32 paramListSize = 0;
AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
0, &paramListSize, nullptr);
if (paramListSize > 0)
{