From abdb896a2a0e42cef67c6149e87988d43f7e46f1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 21 Oct 2021 13:58:33 +0100 Subject: [PATCH] Only use AudioMidiSyncHelper when num-outputs > 0 Signed-off-by: falkTX --- distrho/DistrhoPluginUtils.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distrho/DistrhoPluginUtils.hpp b/distrho/DistrhoPluginUtils.hpp index da63cb63..bd0273d7 100644 --- a/distrho/DistrhoPluginUtils.hpp +++ b/distrho/DistrhoPluginUtils.hpp @@ -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 // -----------------------------------------------------------------------------------------------------------