mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
move delete_fluid_list_mod to fluid_mod.c
This commit is contained in:
parent
1b672d20ef
commit
047a069054
4 changed files with 17 additions and 16 deletions
|
@ -1359,21 +1359,6 @@ new_fluid_preset_zone(char *name)
|
|||
return zone;
|
||||
}
|
||||
|
||||
/*
|
||||
* delete list of modulators.
|
||||
*/
|
||||
void delete_fluid_list_mod(fluid_mod_t *mod)
|
||||
{
|
||||
fluid_mod_t *tmp;
|
||||
|
||||
while(mod) /* delete the modulators */
|
||||
{
|
||||
tmp = mod;
|
||||
mod = mod->next;
|
||||
delete_fluid_mod(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* delete_fluid_preset_zone
|
||||
*/
|
||||
|
|
|
@ -179,7 +179,6 @@ struct _fluid_preset_zone_t
|
|||
};
|
||||
|
||||
fluid_preset_zone_t *new_fluid_preset_zone(char *name);
|
||||
void delete_fluid_list_mod(fluid_mod_t *mod);
|
||||
void delete_fluid_preset_zone(fluid_preset_zone_t *zone);
|
||||
fluid_preset_zone_t *fluid_preset_zone_next(fluid_preset_zone_t *zone);
|
||||
int fluid_preset_zone_import_sfont(fluid_preset_zone_t *zone, SFZone *sfzone, fluid_defsfont_t *defssfont);
|
||||
|
|
|
@ -575,6 +575,21 @@ delete_fluid_mod(fluid_mod_t *mod)
|
|||
FLUID_FREE(mod);
|
||||
}
|
||||
|
||||
/*
|
||||
* delete list of modulators.
|
||||
*/
|
||||
void delete_fluid_list_mod(fluid_mod_t *mod)
|
||||
{
|
||||
fluid_mod_t *tmp;
|
||||
|
||||
while(mod) /* delete the modulators */
|
||||
{
|
||||
tmp = mod;
|
||||
mod = mod->next;
|
||||
delete_fluid_mod(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size of the fluid_mod_t structure.
|
||||
*
|
||||
|
|
|
@ -87,6 +87,8 @@ int fluid_mod_check_linked_mod(char *list_name,
|
|||
fluid_mod_t *list_mod, int mod_count,
|
||||
fluid_mod_t **linked_mod, int linked_count);
|
||||
|
||||
void delete_fluid_list_mod(fluid_mod_t *mod);
|
||||
|
||||
#ifdef DEBUG
|
||||
void fluid_dump_modulator(fluid_mod_t *mod);
|
||||
void fluid_dump_linked_mod(fluid_mod_t *mod, int mod_idx, int offset);
|
||||
|
|
Loading…
Reference in a new issue