Cosmetics
This commit is contained in:
parent
3608b3145a
commit
63cc8ef26e
1 changed files with 3 additions and 3 deletions
|
|
@ -252,18 +252,18 @@ bool sfz::Synth::loadSfzFile(const fs::path& filename)
|
|||
}
|
||||
region->sampleEnd = std::min(region->sampleEnd, fileInformation->end);
|
||||
|
||||
if (fileInformation->loopBegin != Default::loopRange.getStart() &&
|
||||
if (fileInformation->loopBegin != Default::loopRange.getStart() &&
|
||||
fileInformation->loopEnd != Default::loopRange.getEnd()) {
|
||||
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 (!region->loopMode)
|
||||
region->loopMode = SfzLoopMode::loop_continuous;
|
||||
}
|
||||
|
||||
|
||||
if (fileInformation->numChannels == 2)
|
||||
region->isStereo = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue