Question about restartComponent with flag kLatencyChanged


We have a VST3 host, and I am not sure about exactly what steps to take during handling kLatencyChanged notification. The documentation indicates that the plugin must be deactivated and reactivated.

Here are the questions:

  1. Does deactivation and reactivation simply mean calling IComponent::setActive() with false and then with true, or does this also require calling IAudioProcessor::setProcessing() with false and then with true?

  2. If we need to also call setProcessing() - what should be the order?

  3. Should we take precautions as to prevent any IAudioProcessor::process() calls from being called while this deactivation/reactivation takes place?


Check here:

Thank You Yvan for pointing to this!