Bug#740710: problem with SF3 playback
Fabian Greffrath
fabian at debian.org
Tue Nov 24 11:32:18 UTC 2015
Am Dienstag, den 24.11.2015, 11:09 +0100 schrieb Fabian Greffrath:
> This sure needs further investigation.
Got a bit further:
I forgot to adjust the sample->loopstart and sample->loopend values and
I am not even sure if they make sense at all for compressed samples. If
you wipe away this whole block in src/sfloader/fluid_defsfont.c that my
patch adds to fluid_sample_import_sfont()
/* loop is fowled?? (cluck cluck :) */
if (sample->loopend > sample->end ||
sample->loopstart >= sample->loopend ||
sample->loopstart <= sample->start)
{
/* can pad loop by 8 samples and ensure at least 4 for loop (2*8+4) */
if ((sample->end - sample->start) >= 20)
{
sample->loopstart = sample->start + 8;
sample->loopend = sample->end - 8;
}
else /* loop is fowled, sample is tiny (can't pad 8 samples) */
{
sample->loopstart = sample->start + 1;
sample->loopend = sample->end - 1;
}
}
and replace it with a simple
sample->loopstart = sample->loopend = 0;
the MIDI plays back as expected.
- Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20151124/53f19310/attachment.sig>
More information about the pkg-multimedia-maintainers
mailing list