prepared for the get_ptichwheel_sensitivity (no API change)

This commit is contained in:
Antoine Schmitt 2003-05-14 00:37:01 +00:00
parent 612ec06b8c
commit 453cbca96a

View file

@ -1017,6 +1017,31 @@ fluid_synth_pitch_wheel_sens(fluid_synth_t* synth, int chan, int val)
return FLUID_OK;
}
/*
* fluid_synth_get_pitch_wheel_sens
*
* Note : this function was added after version 1.0 API freeze.
* So its API is not in the synth.h file. It should be added in some later
* version of fluidsynth. Maybe v2.0 ? -- Antoine Schmitt May 2003
*/
/*******************
int
fluid_synth_get_pitch_wheel_sens(fluid_synth_t* synth, int chan, int* pval)
{
// check the ranges of the arguments
if ((chan < 0) || (chan >= synth->midi_channels)) {
FLUID_LOG(FLUID_WARN, "Channel out of range");
return FLUID_FAILED;
}
// get the pitch-bend value in the channel
*pval = synth->channel[chan]->pitch_wheel_sensitivity;
return FLUID_OK;
}
************/
/*
* fluid_synth_get_preset
*/