fluid-dev
[Top][All Lists]
Advanced

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

[fluid-dev] Unexpected fluid_synth_sfunload behavior


From: Larry Troxler
Subject: [fluid-dev] Unexpected fluid_synth_sfunload behavior
Date: Sun, 28 Mar 2004 15:20:48 -0500
User-agent: KMail/1.4.3

Hello. I am trying to modify the PD fluid~ external to  share soundfonts among 
more than one fluid~ synth, and have run across a problem with using the API 
to do this.

I thought I could do it this way:

1) Use fluid_synth_sfload the first time the soundfont is loaded
2) Call fluid_synth_get_sfont_by_id to retreive its address
3) Call fluid_synth_add_sfont to add this soundfont to other synths
4) When deleteing a synth, call fluid_synth_sfunload to remove any shared 
synths from the synth that is about to be deleted.

The problem is with step #4. I was surprised to see that fluid_synth_sfunload 
frees the soundfont that it is removing, even though there is no mention of 
this in the function documentation. 

Should this be considered a bug in fluidsynth, or is this actually what some 
users expect to happen?

If this is the way it is supposed to work,  is there a way of doing what I 
want to do? 

TIA

Larry Troxler





reply via email to

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