Browse Source

Clear dummy buffer used for synths and midi plugins

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 2 years ago
parent
commit
e2c8dd4472
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      plugins/Common/IldaeilPlugin.cpp

+ 3
- 3
plugins/Common/IldaeilPlugin.cpp View File

@@ -103,9 +103,8 @@ public:
#if DISTRHO_PLUGIN_WANT_MIDI_INPUT
fMidiEvents = new NativeMidiEvent[kMaxMidiEventCount];
fDummyBuffer = new float[getBufferSize()];
fDummyBuffers[0] = fDummyBuffer;
fDummyBuffers[1] = fDummyBuffer;
// create dummy buffers
bufferSizeChanged(getBufferSize());
#endif
}
@@ -321,6 +320,7 @@ protected:
fDummyBuffer = new float[newBufferSize];
fDummyBuffers[0] = fDummyBuffer;
fDummyBuffers[1] = fDummyBuffer;
std::memset(fDummyBuffer, 0, sizeof(float)*newBufferSize);
}
#endif
// -------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save