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:
parent
54f5077eff
commit
a78194c9e3
1 changed files with 11 additions and 6 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue