mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
move fluid_get_count_mod to fluid_mod.c
This commit is contained in:
parent
a30044b261
commit
d5e7fbec79
2 changed files with 16 additions and 16 deletions
|
@ -1480,22 +1480,6 @@ fluid_zone_is_mod_identic(const fluid_mod_t *mod, char *name)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* returns the number of modulators inside a list.
|
||||
* @param mod, pointer on modulator list.
|
||||
* @return number of modulators.
|
||||
*/
|
||||
int fluid_get_count_mod(const fluid_mod_t *mod)
|
||||
{
|
||||
int count =0;
|
||||
while(mod)
|
||||
{
|
||||
count++;
|
||||
mod = mod->next;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
/* description of bit flags set in path variable by fluid_check_linked_mod_path()
|
||||
These flags indicates if a modulator belongs to a linked path.
|
||||
|
||||
|
|
|
@ -176,6 +176,22 @@ unsigned char fluid_get_num_mod(fluid_mod_t *mod)
|
|||
return count;
|
||||
}
|
||||
|
||||
/*
|
||||
* returns the number of modulators inside a list.
|
||||
* @param mod, pointer on modulator list.
|
||||
* @return number of modulators.
|
||||
*/
|
||||
int fluid_get_count_mod(const fluid_mod_t *mod)
|
||||
{
|
||||
int count =0;
|
||||
while(mod)
|
||||
{
|
||||
count++;
|
||||
mod = mod->next;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
/*
|
||||
* returns next modulator following current modulator.
|
||||
* If mod is a complex linked modulator all members are skipped
|
||||
|
|
Loading…
Reference in a new issue