JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessorValueTreeState::Listener Struct Referenceabstract

A listener class that can be attached to an AudioProcessorValueTreeState. More...

#include <juce_AudioProcessorValueTreeState.h>

Public Member Functions

virtual ~Listener ()=default
 
virtual void parameterChanged (const String &parameterID, float newValue)=0
 This callback method is called by the AudioProcessorValueTreeState when a parameter changes. More...
 

Detailed Description

A listener class that can be attached to an AudioProcessorValueTreeState.

Use AudioProcessorValueTreeState::addParameterListener() to register a callback.

Constructor & Destructor Documentation

◆ ~Listener()

virtual juce::AudioProcessorValueTreeState::Listener::~Listener ( )
virtualdefault

Member Function Documentation

◆ parameterChanged()

virtual void juce::AudioProcessorValueTreeState::Listener::parameterChanged ( const String parameterID,
float  newValue 
)
pure virtual

This callback method is called by the AudioProcessorValueTreeState when a parameter changes.

Within this call, retrieving the value of the parameter that has changed via the getRawParameterValue() or getParameter() methods is not guaranteed to return the up-to-date value. If you need this you should instead use the newValue parameter.


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