mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
fixup_sample should only fix loopstart if it is below sample start, not if they are equal.
Signed-off-by: Marcus Weseloh <marcus@weseloh.cc>
This commit is contained in:
parent
25e7eb0c6b
commit
2d5da02cd4
1 changed files with 1 additions and 1 deletions
|
@ -3179,7 +3179,7 @@ fixup_sample (SFData * sf)
|
|||
return (OK);
|
||||
}
|
||||
else if (sam->loopend > sam->end || sam->loopstart >= sam->loopend
|
||||
|| sam->loopstart <= sam->start)
|
||||
|| sam->loopstart < sam->start)
|
||||
{ /* loop is fowled?? (cluck cluck :) */
|
||||
/* can pad loop by 8 samples and ensure at least 4 for loop (2*8+4) */
|
||||
if ((sam->end - sam->start) >= 20)
|
||||
|
|
Loading…
Reference in a new issue