mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
Update Fluidsynth to v2.0.5
This commit is contained in:
parent
bcd33a2381
commit
1f982b532d
13 changed files with 111 additions and 75 deletions
|
|
@ -246,7 +246,18 @@ int delete_fluid_defsfont(fluid_defsfont_t *defsfont)
|
|||
|
||||
for(list = defsfont->sample; list; list = fluid_list_next(list))
|
||||
{
|
||||
delete_fluid_sample((fluid_sample_t *) fluid_list_get(list));
|
||||
sample = (fluid_sample_t *) fluid_list_get(list);
|
||||
|
||||
/* If the sample data pointer is different to the sampledata chunk of
|
||||
* the soundfont, then the sample has been loaded individually (SF3)
|
||||
* and needs to be unloaded explicitly. This is safe even if using
|
||||
* dynamic sample loading, as the sample_unload mechanism sets
|
||||
* sample->data to NULL after unload. */
|
||||
if ((sample->data != NULL) && (sample->data != defsfont->sampledata))
|
||||
{
|
||||
fluid_samplecache_unload(sample->data);
|
||||
}
|
||||
delete_fluid_sample(sample);
|
||||
}
|
||||
|
||||
if(defsfont->sample)
|
||||
|
|
@ -425,7 +436,7 @@ int fluid_defsfont_load(fluid_defsfont_t *defsfont, const fluid_file_callbacks_t
|
|||
|
||||
if(sfdata == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Couldn't load soundfont file");
|
||||
/* error message already printed */
|
||||
return FLUID_FAILED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue