mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
prepared for the get_ptichwheel_sensitivity (no API change)
This commit is contained in:
parent
612ec06b8c
commit
453cbca96a
1 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue