Browse Source

modified sliderValueChanged() to notify host only on mouse clicks

tags/2021-05-28
luigisambuy 9 years ago
parent
commit
ea7677970c
2 changed files with 7 additions and 2 deletions
  1. +6
    -1
      examples/PlugInSamples/GenericEditor.h
  2. +1
    -1
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 6
- 1
examples/PlugInSamples/GenericEditor.h View File

@@ -99,7 +99,12 @@ public:
void sliderValueChanged (Slider* slider) override
{
if (AudioProcessorParameter* param = getParameterForSlider (slider))
param->setValueNotifyingHost ((float) slider->getValue());
{
if (slider->isMouseButtonDown())
param->setValueNotifyingHost ((float) slider->getValue());
else
param->setValue ((float) slider->getValue());
}
}
void sliderDragStarted (Slider* slider) override


+ 1
- 1
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -288,7 +288,7 @@ public:
bool success = setBusArrangementFromTotalChannelNum (maxNumInChannels, maxNumOutChannels);
ignoreUnused (success);
// please file a bug if you hit this assertsion!
// please file a bug if you hit this assertion!
jassert (maxNumInChannels == busUtils.findTotalNumChannels (true) && success
&& maxNumOutChannels == busUtils.findTotalNumChannels (false));
}


Loading…
Cancel
Save