From edd0b8f04e5c9b1c22f9cab00d2649dedb40de9e Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sat, 10 Apr 2021 15:48:40 +0200 Subject: [PATCH] Always "fast-off" voices that have no samples left If anything, it will cut the release time on an ended sample. --- src/sfizz/Voice.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index 8a73b80f..568688c2 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -1154,9 +1154,7 @@ void Voice::Impl::fillWithData(AudioSpan buffer) noexcept continue; } - if (!released()) - off(int(i), true); - + off(int(i), true); fill(indices->subspan(i), sampleEnd); fill(coeffs->subspan(i), 0x1.fffffep-1); break;