diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.h b/modules/juce_audio_processors/processors/juce_AudioProcessor.h index 39eac82112..fb7cb3806e 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.h @@ -78,6 +78,8 @@ public: doublePrecision }; + using ChangeDetails = AudioProcessorListener::ChangeDetails; + //============================================================================== /** Destructor. */ virtual ~AudioProcessor(); @@ -991,7 +993,7 @@ public: It sends a hint to the host that something like the program, number of parameters, etc, has changed, and that it should update itself. */ - void updateHostDisplay (const AudioProcessorListener::ChangeDetails& details = {}); + void updateHostDisplay (const ChangeDetails& details = ChangeDetails::getAllChanged()); //============================================================================== /** Adds a parameter to the AudioProcessor. diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h b/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h index 9a83d06c83..ad9070dffd 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h @@ -69,6 +69,13 @@ public: ChangeDetails withParameterInfoChanged (bool b) const noexcept { return with (&ChangeDetails::parameterInfoChanged, b); } ChangeDetails withProgramChanged (bool b) const noexcept { return with (&ChangeDetails::programChanged, b); } + static ChangeDetails getAllChanged() + { + return ChangeDetails{}.withLatencyChanged (true) + .withParameterInfoChanged (true) + .withProgramChanged (true); + } + private: template ChangeDetails with (Member&& member, Value&& value) const noexcept