JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::AudioProcessor::ParameterChangeForwarder Class Reference

#include <juce_AudioProcessor.h>

Inheritance diagram for juce::AudioProcessor::ParameterChangeForwarder:
Collaboration diagram for juce::AudioProcessor::ParameterChangeForwarder:

Public Member Functions

 ParameterChangeForwarder (AudioProcessor *o)
 
 ParameterChangeForwarder (const ParameterChangeForwarder &other)
 
ParameterChangeForwarderoperator= (const ParameterChangeForwarder &other)
 
void parameterGestureChanged (int, bool) override
 Indicates that a parameter change gesture has started.
 
void parameterValueChanged (int, float) override
 Receives a callback when a parameter has been changed.
 

Private Attributes

AudioProcessorowner = nullptr
 

Detailed Description

Used to convert new-style per-parameter callbacks into old-style processor-change callbacks. This type will be removed in the future!

Constructor & Destructor Documentation

◆ ParameterChangeForwarder() [1/2]

juce::AudioProcessor::ParameterChangeForwarder::ParameterChangeForwarder ( AudioProcessor o)
inlineexplicit

◆ ParameterChangeForwarder() [2/2]

juce::AudioProcessor::ParameterChangeForwarder::ParameterChangeForwarder ( const ParameterChangeForwarder other)
inline

Member Function Documentation

◆ operator=()

ParameterChangeForwarder & juce::AudioProcessor::ParameterChangeForwarder::operator= ( const ParameterChangeForwarder other)
inline

References owner.

◆ parameterGestureChanged()

void juce::AudioProcessor::ParameterChangeForwarder::parameterGestureChanged ( int  parameterIndex,
bool  gestureIsStarting 
)
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 juce::AudioProcessorParameter::Listener.

◆ parameterValueChanged()

void juce::AudioProcessor::ParameterChangeForwarder::parameterValueChanged ( int  parameterIndex,
float  newValue 
)
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 juce::AudioProcessorParameter::Listener.

Member Data Documentation

◆ owner

AudioProcessor* juce::AudioProcessor::ParameterChangeForwarder::owner = nullptr
private

Referenced by operator=().


The documentation for this class was generated from the following file: