clarify message for incorrect sample loops

loopend might not necessarily be out of range
This commit is contained in:
Tom M 2017-08-06 10:46:52 +02:00 committed by GitHub
parent 5ea1e34100
commit 554be5032d

View file

@ -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);
} }
} }