From 809edfa76cee428a29a59f6683c271d402ad7af0 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 6 Oct 2020 21:06:03 +0200 Subject: [PATCH] Make local copy of the loop characteristics --- src/sfizz/Voice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index 680f819e..1ba67db3 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -559,6 +559,7 @@ void sfz::Voice::fillWithData(AudioSpan buffer) noexcept } // calculate loop characteristics + const auto loop = this->loop; const bool isLooping = region->shouldLoop() && (static_cast(loop.end) < source.getNumFrames());