Add the continue statement in case of failed load
This commit is contained in:
parent
bfa60c32aa
commit
0b8f673a38
1 changed files with 3 additions and 1 deletions
|
|
@ -637,8 +637,10 @@ void Synth::Impl::finalizeSfzLoad()
|
|||
return Default::offsetMod.bounds.clamp(sumOffsetCC);
|
||||
}();
|
||||
|
||||
if (!resources_.filePool.preloadFile(*region.sampleId, maxOffset))
|
||||
if (!resources_.filePool.preloadFile(*region.sampleId, maxOffset)) {
|
||||
removeCurrentRegion();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (!region.isGenerator()) {
|
||||
if (!resources_.wavePool.createFileWave(resources_.filePool, std::string(region.sampleId->filename()))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue