Make local copy of the loop characteristics
This commit is contained in:
parent
24624abef1
commit
809edfa76c
1 changed files with 1 additions and 0 deletions
|
|
@ -559,6 +559,7 @@ void sfz::Voice::fillWithData(AudioSpan<float> buffer) noexcept
|
|||
}
|
||||
|
||||
// calculate loop characteristics
|
||||
const auto loop = this->loop;
|
||||
const bool isLooping = region->shouldLoop()
|
||||
&& (static_cast<size_t>(loop.end) < source.getNumFrames());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue