mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 17:42:21 +00:00
clarify message for incorrect sample loops
loopend might not necessarily be out of range
This commit is contained in:
parent
5ea1e34100
commit
554be5032d
1 changed files with 2 additions and 2 deletions
|
@ -3207,7 +3207,7 @@ fixup_sample (SFData * sf)
|
||||||
|
|
||||||
if(invalid_loopend)
|
if(invalid_loopend)
|
||||||
{
|
{
|
||||||
FLUID_LOG (FLUID_DBG, _("Sample '%s' has out-of-range loop stop '%d',"
|
FLUID_LOG (FLUID_DBG, _("Sample '%s' has unusable loop stop '%d',"
|
||||||
" setting to sample stop at '%d'-1"), sam->name, sam->loopend, sam->end);
|
" setting to sample stop at '%d'-1"), sam->name, sam->loopend, sam->end);
|
||||||
/* since sam->end points after valid sample data, set loopend to last sample available */
|
/* since sam->end points after valid sample data, set loopend to last sample available */
|
||||||
sam->loopend = sam->end - 1;
|
sam->loopend = sam->end - 1;
|
||||||
|
@ -3216,7 +3216,7 @@ fixup_sample (SFData * sf)
|
||||||
if(loopend_end_mismatch)
|
if(loopend_end_mismatch)
|
||||||
{
|
{
|
||||||
FLUID_LOG (FLUID_DBG, _("Sample '%s' has invalid loop stop '%d',"
|
FLUID_LOG (FLUID_DBG, _("Sample '%s' has invalid loop stop '%d',"
|
||||||
", sample stop at '%d', using it anyway"), sam->name, sam->loopend, sam->end);
|
" sample stop at '%d', using it anyway"), sam->name, sam->loopend, sam->end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue