Browse Source

Unity: Use setValueNotifyingHost() when parameters are changed in the Unity editor to ensure that parameter listeners are called

tags/2021-05-28
ed 6 years ago
parent
commit
4363e8cd0d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp

+ 1
- 1
modules/juce_audio_plugin_client/Unity/juce_Unity_Wrapper.cpp View File

@@ -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


Loading…
Cancel
Save