Public Member Functions | |
ParameterChangeForwarder (AudioProcessor *o) | |
ParameterChangeForwarder (const ParameterChangeForwarder &other) | |
ParameterChangeForwarder & | operator= (const ParameterChangeForwarder &other) |
void | parameterValueChanged (int, float) override |
Receives a callback when a parameter has been changed. | |
void | parameterGestureChanged (int, bool) override |
Indicates that a parameter change gesture has started. | |
![]() | |
virtual | ~Listener ()=default |
Destructor. | |
|
explicit |
References AudioProcessor::AudioProcessor().
Referenced by operator=(), and ParameterChangeForwarder().
AudioProcessor::ParameterChangeForwarder::ParameterChangeForwarder | ( | const ParameterChangeForwarder & | other | ) |
References ParameterChangeForwarder().
ParameterChangeForwarder & AudioProcessor::ParameterChangeForwarder::operator= | ( | const ParameterChangeForwarder & | other | ) |
References ParameterChangeForwarder().
|
overridevirtual |
Receives a callback when a parameter has been changed.
IMPORTANT NOTE: This will be called synchronously when a parameter changes, and many audio processors will change their parameter during their audio callback. This means that not only has your handler code got to be completely thread-safe, but it's also got to be VERY fast, and avoid blocking. If you need to handle this event on your message thread, use this callback to trigger an AsyncUpdater or ChangeBroadcaster which you can respond to on the message thread.
Implements AudioProcessorParameter::Listener.
|
overridevirtual |
Indicates that a parameter change gesture has started.
E.g. if the user is dragging a slider, this would be called with gestureIsStarting being true when they first press the mouse button, and it will be called again with gestureIsStarting being false when they release it.
IMPORTANT NOTE: This will be called synchronously, and many audio processors will call it during their audio callback. This means that not only has your handler code got to be completely thread-safe, but it's also got to be VERY fast, and avoid blocking. If you need to handle this event on your message thread, use this callback to trigger an AsyncUpdater or ChangeBroadcaster which you can respond to later on the message thread.
Implements AudioProcessorParameter::Listener.
References AudioProcessor::AudioProcessor().