In debug mode there’s a jassert to check if there’s a ongiong gesture on a AudioProcessorParameter. This is coded into juce_AudioProcessor.cpp
.
But I find no method to do this from my own class. Basically I would like to do this test and if if there’s a gesture giong on do nothing else I will make an automatic update of the parameter:
AudioProcessorParameter* tmpParameter = parameters.getParameter ("dummy");
if ( ! (tmpParameter->gestureOngoing())) {
tmpParameter->beginChangeGesture();
tmpParameter->setValueNotifyingHost(*dummyParameter);
tmpParameter->endChangeGesture();
}
So problem is there’s no gestureOngoing()
but can I somehow check this without diving in to the core Juce code and change stuff like the: AudioProcessorParameter::beginChangeGesture()
? I would prefer not to change basic functions like this.