mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-02 17:12:15 +00:00
Reverted change to unsigned type on fluid_synth_set_reverb_preset(), used fluid_return_val_if_fail() for consistency.
This commit is contained in:
parent
ae041fdcec
commit
b15f6c4b2a
2 changed files with 6 additions and 4 deletions
|
@ -3895,10 +3895,12 @@ 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, unsigned int num)
|
||||
fluid_synth_set_reverb_preset(fluid_synth_t* synth, int num)
|
||||
{
|
||||
if (num >= FLUID_N_ELEMENTS(revmodel_preset))
|
||||
return FLUID_FAILED;
|
||||
fluid_return_val_if_fail (
|
||||
num < 0 || num >= (int)FLUID_N_ELEMENTS(revmodel_preset),
|
||||
FLUID_FAILED
|
||||
);
|
||||
|
||||
fluid_synth_set_reverb (synth, revmodel_preset[num].roomsize,
|
||||
revmodel_preset[num].damp, revmodel_preset[num].width,
|
||||
|
|
|
@ -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, unsigned int num);
|
||||
int fluid_synth_set_reverb_preset(fluid_synth_t* synth, 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