add fluid_synth_count_effects_groups()

This commit is contained in:
derselbst 2018-07-12 10:34:02 +02:00
parent 9546e4a9fe
commit af1fc75717
2 changed files with 17 additions and 0 deletions

View File

@ -171,6 +171,7 @@ FLUIDSYNTH_API int fluid_synth_count_midi_channels(fluid_synth_t *synth);
FLUIDSYNTH_API int fluid_synth_count_audio_channels(fluid_synth_t *synth);
FLUIDSYNTH_API int fluid_synth_count_audio_groups(fluid_synth_t *synth);
FLUIDSYNTH_API int fluid_synth_count_effects_channels(fluid_synth_t *synth);
FLUIDSYNTH_API int fluid_synth_count_effects_groups(fluid_synth_t *synth);
/* Synthesis parameters */

View File

@ -5564,6 +5564,22 @@ fluid_synth_count_effects_channels(fluid_synth_t *synth)
FLUID_API_RETURN(result);
}
/**
* Get the total number of allocated effects units.
* @param synth FluidSynth instance
* @return Count of allocated effects units
*/
int
fluid_synth_count_effects_groups(fluid_synth_t *synth)
{
int result;
fluid_return_val_if_fail(synth != NULL, 0);
fluid_synth_api_enter(synth);
result = synth->effects_groups;
FLUID_API_RETURN(result);
}
/**
* Get the synth CPU load value.
* @param synth FluidSynth instance