diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp index bc57b7ec..2b868709 100644 --- a/distrho/src/DistrhoPluginVST.cpp +++ b/distrho/src/DistrhoPluginVST.cpp @@ -952,18 +952,18 @@ public: void vst_processReplacing(const float** const inputs, float** const outputs, const int32_t sampleFrames) { - if (sampleFrames <= 0) - { - updateParameterOutputsAndTriggers(); - return; - } - if (! fPlugin.isActive()) { // host has not activated the plugin yet, nasty! vst_dispatcher(effMainsChanged, 0, 1, nullptr, 0.0f); } + if (sampleFrames <= 0) + { + updateParameterOutputsAndTriggers(); + return; + } + #if DISTRHO_PLUGIN_WANT_TIMEPOS static const int kWantVstTimeFlags(kVstTransportPlaying|kVstPpqPosValid|kVstTempoValid|kVstTimeSigValid); diff --git a/examples/Info/InfoExamplePlugin.cpp b/examples/Info/InfoExamplePlugin.cpp index 9330b382..bd4829ea 100644 --- a/examples/Info/InfoExamplePlugin.cpp +++ b/examples/Info/InfoExamplePlugin.cpp @@ -253,7 +253,7 @@ protected: * Callbacks (optional) */ /** - Optional callback to inform the plugin about a buffer size change.@ + Optional callback to inform the plugin about a buffer size change. This function will only be called when the plugin is deactivated. @note This value is only a hint! Hosts might call run() with a higher or lower number of frames.