Calling fluid_get_num_mod() instead of fluid_get_count_mod()

- the result is the same as before, but it is better to use
  fluid_get_num_mod() that counts the number of members inside
  a modulator.
This commit is contained in:
jjceresa 2019-10-08 19:30:19 +02:00
parent fd0dbb89df
commit 8a3eaa2948

View file

@ -13,10 +13,6 @@
#include "synth/fluid_voice.h"
#include "synth/fluid_chan.h"
//----------------------------------------------------------------------------
/* external functions */
int fluid_get_count_mod(const fluid_mod_t *mod);
//----------------------------------------------------------------------------
static int fluid_compare_simple_mod_structure(fluid_mod_t *mod1, fluid_mod_t *mod2);
static int fluid_compare_complex_mod_structure(fluid_mod_t *cm1, fluid_mod_t *cm2,
@ -385,8 +381,8 @@ static int fluid_compare_complex_mod_structure(fluid_mod_t *cm1, fluid_mod_t *cm
double amount2_mul)
{
int offset1, offset2;
int count1 = fluid_get_count_mod(cm1);
int count2 = fluid_get_count_mod(cm2);
int count1 = fluid_get_num_mod(cm1);
int count2 = fluid_get_num_mod(cm2);
// compare members count and ending modulators
if ((count1 != count2)