From 3852771d1c49118d5b2cf420e749ce1b62a97274 Mon Sep 17 00:00:00 2001 From: hogliux Date: Fri, 27 May 2016 10:29:08 +0100 Subject: [PATCH] Always send VST3 editor parameter changes to the VST3 processor --- .../format_types/juce_VST3PluginFormat.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index e05b016c4b..68265c1595 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -399,14 +399,16 @@ public: owner->sendParamChangeMessageToListeners (index, (float) valueNormalized); - // did the plug-in already update the parameter internally - if (owner->editController->getParamNormalized (paramID) != (float) valueNormalized) { Steinberg::int32 eventIndex; owner->inputParameterChanges->addParameterData (paramID, eventIndex)->addPoint (0, valueNormalized, eventIndex); } - return owner->editController->setParamNormalized (paramID, valueNormalized); + // did the plug-in already update the parameter internally + if (owner->editController->getParamNormalized (paramID) != (float) valueNormalized) + return owner->editController->setParamNormalized (paramID, valueNormalized); + + return kResultTrue; } tresult PLUGIN_API endEdit (Vst::ParamID paramID) override @@ -2398,6 +2400,7 @@ private: Vst::BusInfo busInfo; busInfo.mediaType = forAudio ? Vst::kAudio : Vst::kEvent; busInfo.direction = forInput ? Vst::kInput : Vst::kOutput; + busInfo.channelCount = 0; component->getBusInfo (busInfo.mediaType, busInfo.direction, (Steinberg::int32) index, busInfo);