Set the loopend to the sample end by default
This commit is contained in:
parent
0bcd09a761
commit
037a2cec5b
1 changed files with 2 additions and 0 deletions
|
|
@ -249,6 +249,8 @@ bool sfz::Synth::loadSfzFile(const fs::path& file)
|
|||
}
|
||||
|
||||
region->sampleEnd = std::min(region->sampleEnd, fileInformation->end);
|
||||
if (region->loopRange.getEnd() == Default::loopRange.getEnd())
|
||||
region->loopRange.setEnd(region->sampleEnd);
|
||||
|
||||
if (fileInformation->loopBegin != Default::loopRange.getStart() &&
|
||||
fileInformation->loopEnd != Default::loopRange.getEnd()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue