diff --git a/src/plugin/DesktopPlugin.cpp b/src/plugin/DesktopPlugin.cpp index c19cd66..abf62ac 100644 --- a/src/plugin/DesktopPlugin.cpp +++ b/src/plugin/DesktopPlugin.cpp @@ -366,6 +366,14 @@ class DesktopPlugin : public Plugin, return; } + // FIXME not quite right, crashes + if (getBufferSize() != frames) + { + std::memset(outputs[0], 0, sizeof(float) * frames); + std::memset(outputs[1], 0, sizeof(float) * frames); + return; + } + uint32_t ti = numFramesInShmBuffer; uint32_t to = numFramesInTmpBuffer; uint32_t framesDone = 0;