Skip to content

Commit

Permalink
require fixed buffer size in plugin for now
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Mar 16, 2024
1 parent d3f6250 commit dbb460e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugin/DesktopPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbb460e

Please sign in to comment.