diff --git a/tests/RegionT.cpp b/tests/RegionT.cpp index c7896667..cc2714a0 100644 --- a/tests/RegionT.cpp +++ b/tests/RegionT.cpp @@ -1045,7 +1045,7 @@ TEST_CASE("[Region] Parsing opcodes") REQUIRE(region.amplitudeEG.decay == 0.0f); REQUIRE(region.amplitudeEG.delay == 0.0f); REQUIRE(region.amplitudeEG.hold == 0.0f); - REQUIRE(region.amplitudeEG.release == 0.0f); + REQUIRE(region.amplitudeEG.release == 0.001f); REQUIRE(region.amplitudeEG.start == 0.0f); REQUIRE(region.amplitudeEG.sustain == 100.0f); REQUIRE(region.amplitudeEG.depth == 0); diff --git a/tests/SynthT.cpp b/tests/SynthT.cpp index 49fccde2..b7a7d1af 100644 --- a/tests/SynthT.cpp +++ b/tests/SynthT.cpp @@ -1369,3 +1369,14 @@ TEST_CASE("[Synth] Initial values of CC") REQUIRE(synth.getHdccInit(111) == Approx(0.1234f)); REQUIRE(synth.getHdccInit(112) == Approx(77.0f / 127)); } + +TEST_CASE("[Synth] Default ampeg_release") +{ + sfz::Synth synth; + + synth.loadSfzString(fs::current_path() / "default_release.sfz", R"( + sample=*sine + )"); + + REQUIRE(synth.getRegionView(0)->amplitudeEG.release > 0.0005f); +}