Browse Source

Being picky...

Signed-off-by: falkTX <falktx@falktx.com>
pull/232/head
falkTX 5 years ago
parent
commit
b09a8ae435
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 7 additions and 7 deletions
  1. +6
    -6
      distrho/src/DistrhoPluginVST.cpp
  2. +1
    -1
      examples/Info/InfoExamplePlugin.cpp

+ 6
- 6
distrho/src/DistrhoPluginVST.cpp View File

@@ -952,18 +952,18 @@ public:


void vst_processReplacing(const float** const inputs, float** const outputs, const int32_t sampleFrames) void vst_processReplacing(const float** const inputs, float** const outputs, const int32_t sampleFrames)
{ {
if (sampleFrames <= 0)
{
updateParameterOutputsAndTriggers();
return;
}

if (! fPlugin.isActive()) if (! fPlugin.isActive())
{ {
// host has not activated the plugin yet, nasty! // host has not activated the plugin yet, nasty!
vst_dispatcher(effMainsChanged, 0, 1, nullptr, 0.0f); vst_dispatcher(effMainsChanged, 0, 1, nullptr, 0.0f);
} }


if (sampleFrames <= 0)
{
updateParameterOutputsAndTriggers();
return;
}

#if DISTRHO_PLUGIN_WANT_TIMEPOS #if DISTRHO_PLUGIN_WANT_TIMEPOS
static const int kWantVstTimeFlags(kVstTransportPlaying|kVstPpqPosValid|kVstTempoValid|kVstTimeSigValid); static const int kWantVstTimeFlags(kVstTransportPlaying|kVstPpqPosValid|kVstTempoValid|kVstTimeSigValid);




+ 1
- 1
examples/Info/InfoExamplePlugin.cpp View File

@@ -253,7 +253,7 @@ protected:
* Callbacks (optional) */ * 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. This function will only be called when the plugin is deactivated.
@note This value is only a hint! @note This value is only a hint!
Hosts might call run() with a higher or lower number of frames. Hosts might call run() with a higher or lower number of frames.


Loading…
Cancel
Save