HostPluginDemo - UpdateHostDisplay() not updating inner plugin visually

Hello,

I am new to JUCE and have tried to find similar posts, but I have still not been able to solve this issue.

I am loading a synth inside of a VST using the HostPluginDemo template code. I update these synth parameters and then call updateHostDisplay(). While the parameters are updating, the synth display is not updating.

Do you know what might be causing this issue? The code is here for reference: host-plugin-demo/Source/HostPluginDemo.h at main · mgysel/host-plugin-demo · GitHub

Thanks for your help,
Mike

Some plugins require that processBlock is called in order to update their parameters properly. Perhaps you could try calling the process function of the hosted plugin from the processBlock of the wrapped plugin to see whether that helps.

Also, from skimming the code: it’s a bad idea to use parameter names to identify parameters, as plugins are allowed to change parameter names dynamically. It’s better to use the parameter identifier field, because these won’t change while the plugin is running, and should stay stable across plugin versions too.

Yesssss, thank you for your help and responsiveness!! I was trying to figure that out for days, and that finally solved the issue.

By “parameter identifier field”, are you just referring to the getParameterIndex() function?

AudioPluginInstance has a member HostedParameter* getHostedParameter (int) const, and HostedAudioProcessorParameter has a function String getParameterID() const that returns a stable identifier for that parameter. When hosting plugins, it’s a good idea to use the HostedParameters rather than plain AudioProcessorParameters, so that you can access these stable parameter identifiers.