From 4363e8cd0d2097c5f0b87377a89e4bcf7f1ccaf3 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 9 Nov 2018 09:46:23 +0000 Subject: [PATCH] Unity: Use setValueNotifyingHost() when parameters are changed in the Unity editor to ensure that parameter listeners are called --- modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp b/modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp index a079308d28..04e8b1812b 100644 --- a/modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp @@ -409,7 +409,7 @@ public: definition.parameterDefintions = parametersPtr.get(); } - void setParameter (int index, float value) { juceParameters.getParamForIndex (index)->setValue (value); } + void setParameter (int index, float value) { juceParameters.getParamForIndex (index)->setValueNotifyingHost (value); } float getParameter (int index) const noexcept { return juceParameters.getParamForIndex (index)->getValue(); } String getParameterString (int index) const noexcept