From 54f5077effabd5d8ba4a41cfd8ade221a0dd2775 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 1 Dec 2022 19:01:36 +0000 Subject: [PATCH] VST3 Host: Avoid rebuilding parameter tree in refreshParameterList The VST3 spec disallows adding/removing parameters at runtime. As far as I can tell, there's no way for a plugin to signal to the host that the unitIds of one or more parameters have changed, so I suspect these are not allowed to change at runtime either. Given this, I can't think of a good reason for refreshParameterList to have any effect for VST3 plug-ins. --- .../format_types/juce_VST3PluginFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index 3ebfbc661f..7dca5a5b54 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -2386,7 +2386,7 @@ public: auto configureParameters = [this] { - refreshParameterList(); + initialiseParameterList(); synchroniseStates(); syncProgramNames(); }; @@ -3216,7 +3216,7 @@ private: } } - void refreshParameterList() override + void initialiseParameterList() { AudioProcessorParameterGroup newParameterTree;