From 4af3ac4e5586749c76daa2d599cce8d456cf0457 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 18 Feb 2020 14:45:24 +0100 Subject: [PATCH] Fix a broken test You need to render the block to see the voice in release state now, which is normal --- tests/FilesT.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() ); }