mirror of https://github.com/ZDoom/fluidsynth.git
fix missing/misplaced comments
This commit is contained in:
parent
dae722fecc
commit
80bc911b05
|
@ -1791,7 +1791,8 @@ fluid_zone_copy_linked_mod(fluid_mod_t *list_mod, int dest_idx, int new_idx,
|
|||
|
||||
/**
|
||||
* Checks and remove invalid modulators from a zone modulators list.
|
||||
* - checks valid modulator sources (specs SF 2.01 7.4, 7.8, 8.2.1).
|
||||
* - checks invalid linked modulator.
|
||||
* - checks invalid modulator sources (specs SF 2.01 7.4, 7.8, 8.2.1).
|
||||
* - checks identic modulator in the list (specs SF 2.01 7.4, 7.8).
|
||||
* @param list_mod, address of pointer on modulator list.
|
||||
*/
|
||||
|
@ -1802,9 +1803,10 @@ static void fluid_zone_check_remove_mod(fluid_mod_t **list_mod)
|
|||
while(mod)
|
||||
{
|
||||
fluid_mod_t *next = mod->next;
|
||||
/* has mod invalid sources ? */
|
||||
if(((fluid_mod_has_linked_src1(mod)||(mod->dest & FLUID_MOD_LINK_DEST))
|
||||
if( /* Is mod an invalid linked modulator ? */
|
||||
((fluid_mod_has_linked_src1(mod)||(mod->dest & FLUID_MOD_LINK_DEST))
|
||||
&& (mod->amount == 0))
|
||||
/* or has mod invalid sources ? */
|
||||
|| !fluid_mod_check_sources(mod, NULL)
|
||||
/* or is mod identic to any following modulator ? */
|
||||
|| fluid_zone_is_mod_identic(mod, NULL))
|
||||
|
|
Loading…
Reference in New Issue