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());