1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
ed 2018-11-09 09:46:23 +00:00
parent 06f8accd9c
commit 4363e8cd0d

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