You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a problem with the current sample reference counting algorithm. When I load a bank, then process a MIDI file through the synthesizer, then unload, the SoundFont fails to unload because several of the samples which were used still have positive reference counts.
Even resetting the synthesizer before unloading fails. As a workaround, I have extended the SoundFont delete function to include a force parameter, so that all unchecked calls to the delete function may force it to ignore the reference counts. This is probably not an ideal long term solution, however.
I am using revision 328. Since instruments were keeping some non-zero reference count on unload, I am using the above mentioned workaround to forcibly free all instruments when deleting the FluidSynth instance.
I will update to the latest revision later, but there are a number of changes I have made as well that may conflict. None of which have anything to do with sample/instrument reference counts, except that force unload on delete hack.
There seems to be a problem with the current sample reference counting algorithm. When I load a bank, then process a MIDI file through the synthesizer, then unload, the SoundFont fails to unload because several of the samples which were used still have positive reference counts.
Even resetting the synthesizer before unloading fails. As a workaround, I have extended the SoundFont delete function to include a force parameter, so that all unchecked calls to the delete function may force it to ignore the reference counts. This is probably not an ideal long term solution, however.
Reported by: kode54
Original Ticket: fluidsynth/tickets/83
The text was updated successfully, but these errors were encountered: