Some plug-ins change their latency at runtime, but the current VST wrapper implementation does not support reporting the changed latency to the host during playback.
I have found that this can be easily achieved by changing the current:
void audioProcessorChanged (AudioProcessor*)
{
updateDisplay();
}
to
void audioProcessorChanged (AudioProcessor* processor)
{
setInitialDelay (processor->getLatencySamples ());
ioChanged ();
updateDisplay();
}
in juce_VST_Wrapper.cpp
This way, hosts that support a change in latency during playback get notified of the changed value in real-time