Browse Source

Only use AudioMidiSyncHelper when num-outputs > 0

Signed-off-by: falkTX <falktx@falktx.com>
pull/344/head
falkTX 3 years ago
parent
commit
abdb896a2a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      distrho/DistrhoPluginUtils.hpp

+ 2
- 0
distrho/DistrhoPluginUtils.hpp View File

@@ -61,6 +61,7 @@ const char* getResourcePath(const char* bundlePath) noexcept;
// -----------------------------------------------------------------------------------------------------------
// Plugin helper classes

#if DISTRHO_PLUGIN_NUM_OUTPUTS > 0
/**
Handy class to help keep audio buffer in sync with incoming MIDI events.
To use it, create a local variable (on the stack) and call nextEvent() until it returns false.
@@ -189,6 +190,7 @@ private:
uint32_t remainingMidiEventCount;
uint32_t totalFramesUsed;
};
#endif

// -----------------------------------------------------------------------------------------------------------



Loading…
Cancel
Save