iiwusynth-devel
[Top][All Lists]
Advanced

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

[iiwusynth-devel] Re: unloading a soundfont


From: Antoine Schmitt
Subject: [iiwusynth-devel] Re: unloading a soundfont
Date: Thu, 28 Nov 2002 15:45:27 +0100

:::::::::28/11/02::::15:12 +0100::::Peter Hanappe:::::::::
When? At the next load request? That might not be good enough, because
the risk exists that soundfont stays in memory for a long time. At every
'noteon' and 'noteoff' event? That may not be good, too. That means that
real-time threads can no longer call this function!

I dont understand. What do you mean ?

:::::::::28/11/02::::15:12 +0100::::Peter Hanappe:::::::::
Yes, we could spin off a timer thread to do the work. It checks every N
msec (~1000 msec) if the soundfont is no longer used (refcount=0) and
frees it if possible.
This doesn't work on macos 9, though (can't free memory in interupt).


I didn't think about this... Mmm.

++ as





reply via email to

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