fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] [PATCH] sampledata caching


From: Dave Serls
Subject: Re: [fluid-dev] [PATCH] sampledata caching
Date: Tue, 9 Oct 2012 12:26:18 -0600

Once upon a time I has a patch for Qsynth which attempted to accomplish the
same thing.  It was not tested sufficiently at that time.  I'm delighted that
you've put the remedy at the source.

On Tue, 09 Oct 2012 20:11:31 +0200
Kjetil Matheussen <address@hidden> wrote:

> Thanks for the feedback. I wasn't sure if it was a real problem, or if
> I just used fluidsynth the wrong way. Anyway, my patch should solve 
> your
> problem too.
> 
> 
> On 09.10.2012 19:51, Aere Greenway wrote:
> > All:
> >
> >  This same problem is apparent when using Qsynth. I have wished for
> > what Kjetil has worked-out, but had no idea of how hard (or 
> > difficult)
> > such a fix would be (so I expressed this need only as a wish).
> >
> >  For my users with less than 1 gigabytes of RAM, I work around the
> > problem my using the good (150 megabyte) soundfont for the first
> > Qsynth engine, and use a poorer-quality 8 megabyte font for the 2nd
> > Qsynth engine.
> >
> >  - Aere
> >
> >  On Tue, 2012-10-09 at 11:13 +0200, Kjetil Matheussen wrote:
> >
> >> Hi,
> >>
> >> I'm embedding FluidSynth as an instrument in the Radium music editor
> >>
> >> ().
> >>
> >> It works fine (thanks for the great work!), but the memory usage was
> >>
> >> sometimes shockingly high because fluidsynth reloads
> >> entire soundfonts for every new synth, even if the soundfont was
> >> already used in a different synth.
> >>
> >> Maybe I have misunderstood something, but instead of spending
> >> several
> >> more hours trying to figure out if I had misunderstood
> >> something, I modified fluidsynth to cache already loaded sampledata
> >> from soundfonts.
> >>
> >> Here's the patch:
> >>
> >> Please let me know if there's anything that's needed to do in order
> >> for
> >> you to use it.
> >>
> >> I also have a question: Can delete_fluid_defsfont and
> >> fluid_defsfont_load_sampledata be called from different threads at
> >> the
> >> same time?
> >> In so, we also need a lock protecting the global list of cached
> >> sampledata.
> >>
> >> -Kjetil
> >>
> >> _______________________________________________
> >> fluid-dev mailing list
> 
> _______________________________________________
> fluid-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]