Browse Source

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

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

+ 5
- 0
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm 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()
{


Loading…
Cancel
Save