Bug#740710: problem with SF3 playback
hamish at cloud.net.au
hamish at cloud.net.au
Tue Nov 24 11:40:51 UTC 2015
Thanks Fabian. I will try tomorrow.
Hamish
Sent from my android device.
-----Original Message-----
From: Fabian Greffrath <fabian at debian.org>
To: 740710 at bugs.debian.org, Hamish Moffatt <hamish-debian at cloud.net.au>
Sent: Tue, 24 Nov 2015 22:32
Subject: Re: Bug#740710: problem with SF3 playback
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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20151124/49993f26/attachment.html>
More information about the pkg-multimedia-maintainers
mailing list