remove conditional compilation of fluid_print_voice_mod() and friends

fixes release build
This commit is contained in:
derselbst 2019-10-05 15:11:32 +02:00
parent 06c8980b93
commit 2be0012057
4 changed files with 5 additions and 15 deletions

View file

@ -693,7 +693,6 @@ fluid_defpreset_next(fluid_defpreset_t *defpreset)
}
#ifdef DEBUG
void fluid_print_voice_mod(fluid_voice_t *voice);
/*
Prints all the voice modulators of an instrument zone.

View file

@ -2213,12 +2213,7 @@ void fluid_voice_set_custom_filter(fluid_voice_t *voice, enum fluid_iir_filter_t
UPDATE_RVOICE_GENERIC_I2(fluid_iir_filter_init, &voice->rvoice->resonant_custom_filter, type, flags);
}
#ifdef DEBUG
/*
Prints all the voice modulators.
@param voice voice
*/
/* Prints all the voice modulators. */
void fluid_print_voice_mod(fluid_voice_t *voice)
{
int i, mod_idx;
@ -2291,5 +2286,3 @@ fluid_mod_t *fluid_voice_get_modulator(fluid_voice_t *voice, int mod_idx)
}
return NULL;
}
#endif

View file

@ -194,4 +194,8 @@ fluid_real_t fluid_voice_gen_value(const fluid_voice_t *voice, int num);
void fluid_voice_set_custom_filter(fluid_voice_t *voice, enum fluid_iir_filter_type type, enum fluid_iir_filter_flags flags);
void fluid_print_voice_mod(fluid_voice_t *voice);
int fluid_voice_get_count_modulators(fluid_voice_t *voice);
fluid_mod_t *fluid_voice_get_modulator(fluid_voice_t *voice, int mod_idx);
#endif /* _FLUID_VOICE_H */

View file

@ -10,12 +10,6 @@ FLUID_VOICE_DEFAULT, FLUID_VOICE_ADD, FLUID_VOICE_OVERWRITE.
#include "synth/fluid_voice.h"
#include "synth/fluid_chan.h"
//----------------------------------------------------------------------------
/* external functions */
void fluid_print_voice_mod(fluid_voice_t *voice);
int fluid_voice_get_count_modulators(fluid_voice_t *voice);
fluid_mod_t *fluid_voice_get_modulator(fluid_voice_t *voice, int mod_idx);
//----------------------------------------------------------------------------
static int fluid_compare_mod_structure(fluid_mod_t *mod1, fluid_mod_t *mod2);