diff --git a/tests/FilesT.cpp b/tests/FilesT.cpp index 9a994202..c8cd6c03 100644 --- a/tests/FilesT.cpp +++ b/tests/FilesT.cpp @@ -400,6 +400,7 @@ TEST_CASE("[Files] Off by with different delays") { sfz::Synth synth; synth.setSamplesPerBlock(256); + sfz::AudioBuffer buffer(2, 256); synth.loadSfzFile(fs::current_path() / "tests/TestFiles/off_by.sfz"); REQUIRE( synth.getNumRegions() == 4 ); synth.noteOn(0, 63, 63); @@ -408,6 +409,7 @@ TEST_CASE("[Files] Off by with different delays") REQUIRE( group1Voice->getRegion()->group == 1ul ); REQUIRE( group1Voice->getRegion()->offBy == 2ul ); synth.noteOn(100, 64, 63); + synth.renderBlock(buffer); REQUIRE( group1Voice->canBeStolen() ); }