Fix the use of file loop markers
This commit is contained in:
parent
ffb476aa44
commit
adaaf4b61c
1 changed files with 3 additions and 2 deletions
|
|
@ -363,8 +363,6 @@ 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()) {
|
||||
if (region->loopRange.getStart() == Default::loopRange.getStart())
|
||||
|
|
@ -377,6 +375,9 @@ bool sfz::Synth::loadSfzFile(const fs::path& file)
|
|||
region->loopMode = SfzLoopMode::loop_continuous;
|
||||
}
|
||||
|
||||
if (region->loopRange.getEnd() == Default::loopRange.getEnd())
|
||||
region->loopRange.setEnd(region->sampleEnd);
|
||||
|
||||
if (fileInformation->numChannels == 2)
|
||||
region->hasStereoSample = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue