mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-18 05:31:02 +00:00
Fix ticket #81 - allow channel=-1 for fluid_synth_set_interp_method
This commit is contained in:
parent
94e5844b60
commit
8cfcef3c90
1 changed files with 5 additions and 1 deletions
|
@ -4582,7 +4582,11 @@ int
|
|||
fluid_synth_set_interp_method(fluid_synth_t* synth, int chan, int interp_method)
|
||||
{
|
||||
int i;
|
||||
FLUID_API_ENTRY_CHAN(FLUID_FAILED);
|
||||
|
||||
fluid_return_val_if_fail (synth != NULL, FLUID_FAILED);
|
||||
fluid_synth_api_enter(synth);
|
||||
if (chan < -1 || chan >= synth->midi_channels)
|
||||
FLUID_API_RETURN(FLUID_FAILED);
|
||||
|
||||
if (synth->channel[0] == NULL) {
|
||||
FLUID_LOG (FLUID_ERR, "Channels don't exist (yet)!");
|
||||
|
|
Loading…
Reference in a new issue