From 0da9ed11dc347bb182c7ab5d1824d0d8bcae9cda Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 21 Oct 2019 11:37:24 +0100 Subject: [PATCH] AU: Call refreshParameterList() when kAudioUnitProperty_ParameterList event is received --- .../format_types/juce_AudioUnitPluginFormat.mm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index 36b9ad5eb4..bf9f60555b 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1791,14 +1791,23 @@ private: default: if (event.mArgument.mProperty.mPropertyID == kAudioUnitProperty_ParameterList) + { + refreshParameterList(); updateHostDisplay(); + } else if (event.mArgument.mProperty.mPropertyID == kAudioUnitProperty_PresentPreset) + { sendAllParametersChangedEvents(); + } else if (event.mArgument.mProperty.mPropertyID == kAudioUnitProperty_Latency) + { updateLatency(); + } else if (event.mArgument.mProperty.mPropertyID == kAudioUnitProperty_BypassEffect) + { if (bypassParam != nullptr) bypassParam->setValueNotifyingHost (bypassParam->getValue()); + } break; }