If multiple loop regions in the file take the 1st
This commit is contained in:
parent
63cc8ef26e
commit
7aff30f58a
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ absl::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation
|
||||||
|
|
||||||
SF_INSTRUMENT instrumentInfo;
|
SF_INSTRUMENT instrumentInfo;
|
||||||
sndFile.command(SFC_GET_INSTRUMENT, &instrumentInfo, sizeof(instrumentInfo));
|
sndFile.command(SFC_GET_INSTRUMENT, &instrumentInfo, sizeof(instrumentInfo));
|
||||||
if (instrumentInfo.loop_count == 1) {
|
if (instrumentInfo.loop_count > 0) {
|
||||||
returnedValue.loopBegin = instrumentInfo.loops[0].start;
|
returnedValue.loopBegin = instrumentInfo.loops[0].start;
|
||||||
returnedValue.loopEnd = instrumentInfo.loops[0].end;
|
returnedValue.loopEnd = instrumentInfo.loops[0].end;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue