1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AUv3 Client: Notify host when latency changes

This can be tested by toggling 'Distortion' on and off in the
DSPModulePluginDemo, and checking the latency reported in the node
statistics in AUM.
This commit is contained in:
reuk 2022-12-01 19:51:49 +00:00
parent 54f5077eff
commit a78194c9e3
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -603,16 +603,21 @@ public:
//==============================================================================
void audioProcessorChanged ([[maybe_unused]] AudioProcessor* processor, const ChangeDetails& details) override
{
if (! details.programChanged)
return;
if (details.programChanged)
{
ScopedKeyChange scope (au, @"allParameterValues");
addPresets();
{
ScopedKeyChange scope (au, @"allParameterValues");
addPresets();
}
{
ScopedKeyChange scope (au, @"currentPreset");
}
}
if (details.latencyChanged)
{
ScopedKeyChange scope (au, @"currentPreset");
ScopedKeyChange scope (au, @"latency");
}
}