mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
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:
parent
fd0dbb89df
commit
8a3eaa2948
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue