diff --git a/src/headless/tests/PreBufferTest.cpp b/src/headless/tests/PreBufferTest.cpp index fe074fb1..3b47bf64 100644 --- a/src/headless/tests/PreBufferTest.cpp +++ b/src/headless/tests/PreBufferTest.cpp @@ -41,8 +41,10 @@ class PreBufferTest : public UnitTest { proc->prepareProcessing (testSampleRate, testBlockSize); + MidiBuffer midi; AudioBuffer buffer (1, testBlockSize); buffer.clear(); + proc->midiBuffer = &midi; proc->processAudioBlock (buffer); const auto steadyStateMax = [] (const auto& name)