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

AU: Made the detection of parameters more robust when hosting AU plug-ins

This commit is contained in:
Tom Poole 2019-04-01 11:39:45 +01:00
parent fec3b7d59e
commit 98244f1ed1

View file

@ -969,6 +969,9 @@ public:
if (prepared)
{
if (! haveParameterList)
refreshParameterList();
if (! syncBusLayouts (getBusesLayout(), true, ignore))
{
prepared = false;
@ -1357,6 +1360,7 @@ public:
UInt32 paramListSize = 0;
AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
0, &paramListSize, nullptr);
haveParameterList = paramListSize >= 0;
if (paramListSize > 0)
{
@ -1657,6 +1661,7 @@ private:
MidiBuffer incomingMidi;
std::unique_ptr<AUBypassParameter> bypassParam;
bool lastProcessBlockCallWasBypass = false, auSupportsBypass = false;
bool haveParameterList = false;
void createPluginCallbacks()
{