mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 03:11:13 +00:00
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:
parent
b15f6c4b2a
commit
931e4349a6
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue