diff --git a/include/fluidsynth/synth.h b/include/fluidsynth/synth.h index c913c3e4..ad37f1de 100644 --- a/include/fluidsynth/synth.h +++ b/include/fluidsynth/synth.h @@ -270,7 +270,7 @@ enum fluid_synth_add_mod { FLUID_SYNTH_ADD, /**< Add (sum) modulator amounts */ }; -FLUIDSYNTH_API int fluid_synth_add_default_mod(fluid_synth_t* synth, fluid_mod_t* mod, enum fluid_synth_add_mod mode); +FLUIDSYNTH_API int fluid_synth_add_default_mod(fluid_synth_t* synth, fluid_mod_t* mod, int mode); /* diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 4c20ed50..145cf370 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -1083,7 +1083,7 @@ fluid_synth_damp_voices_by_sostenuto_LOCAL(fluid_synth_t* synth, int chan) * @return FLUID_OK on success, FLUID_FAILED otherwise */ int -fluid_synth_add_default_mod(fluid_synth_t* synth, fluid_mod_t* mod, enum fluid_synth_add_mod mode) +fluid_synth_add_default_mod(fluid_synth_t* synth, fluid_mod_t* mod, int mode) { fluid_mod_t* default_mod; fluid_mod_t* last_mod = NULL;