Only update the loop points if set to defaults
This commit is contained in:
parent
d0716170c8
commit
3aa341e0aa
1 changed files with 7 additions and 1 deletions
|
|
@ -251,7 +251,13 @@ bool sfz::Synth::loadSfzFile(const fs::path& filename)
|
|||
continue;
|
||||
}
|
||||
region->sampleEnd = std::min(region->sampleEnd, fileInformation->end);
|
||||
region->loopRange.shrinkIfSmaller(fileInformation->loopBegin, fileInformation->loopEnd);
|
||||
|
||||
if (region->loopRange.getStart() == Default::loopRange.getStart())
|
||||
region->loopRange.setStart(fileInformation->loopBegin);
|
||||
|
||||
if (region->loopRange.getEnd() == Default::loopRange.getEnd())
|
||||
region->loopRange.setEnd(fileInformation->loopEnd);
|
||||
|
||||
if (fileInformation->numChannels == 2)
|
||||
region->isStereo = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue