DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit abdb896a2a0e42cef67c6149e87988d43f7e46f1
parent 4ecbd24570b780363bf3cb588fb23bb210ee944f
Author: falkTX <falktx@falktx.com>
Date:   Thu, 21 Oct 2021 13:58:06 +0100

Only use AudioMidiSyncHelper when num-outputs > 0

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/DistrhoPluginUtils.hpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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 // -----------------------------------------------------------------------------------------------------------