From b09a8ae435fa55559d68fdf41b84e1ef3349f098 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 21 Feb 2020 09:58:18 +0000 Subject: [PATCH] Being picky... Signed-off-by: falkTX --- distrho/src/DistrhoPluginVST.cpp | 12 ++++++------ examples/Info/InfoExamplePlugin.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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.