Reverted again to unsigned type on fluid_synth_set_reverb_preset(), fixed error on fluid_return_val_if_fail() usage.

This commit is contained in:
carlo-bramini 2017-10-21 17:13:02 +02:00
parent b15f6c4b2a
commit 931e4349a6
2 changed files with 3 additions and 3 deletions

View file

@ -3895,10 +3895,10 @@ fluid_synth_set_reverb_on(fluid_synth_t* synth, int on)
* @note Currently private to libfluidsynth.
*/
int
fluid_synth_set_reverb_preset(fluid_synth_t* synth, int num)
fluid_synth_set_reverb_preset(fluid_synth_t* synth, unsigned int num)
{
fluid_return_val_if_fail (
num < 0 || num >= (int)FLUID_N_ELEMENTS(revmodel_preset),
num < FLUID_N_ELEMENTS(revmodel_preset),
FLUID_FAILED
);

View file

@ -191,7 +191,7 @@ void fluid_synth_dither_s16(int *dither_index, int len, float* lin, float* rin,
void* rout, int roff, int rincr);
int fluid_synth_reset_reverb(fluid_synth_t* synth);
int fluid_synth_set_reverb_preset(fluid_synth_t* synth, int num);
int fluid_synth_set_reverb_preset(fluid_synth_t* synth, unsigned int num);
int fluid_synth_set_reverb_full(fluid_synth_t* synth, int set, double roomsize,
double damping, double width, double level);