mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
add fluid_synth_count_effects_groups()
This commit is contained in:
parent
9546e4a9fe
commit
af1fc75717
2 changed files with 17 additions and 0 deletions
|
@ -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_channels(fluid_synth_t *synth);
|
||||||
FLUIDSYNTH_API int fluid_synth_count_audio_groups(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_channels(fluid_synth_t *synth);
|
||||||
|
FLUIDSYNTH_API int fluid_synth_count_effects_groups(fluid_synth_t *synth);
|
||||||
|
|
||||||
|
|
||||||
/* Synthesis parameters */
|
/* Synthesis parameters */
|
||||||
|
|
|
@ -5564,6 +5564,22 @@ fluid_synth_count_effects_channels(fluid_synth_t *synth)
|
||||||
FLUID_API_RETURN(result);
|
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.
|
* Get the synth CPU load value.
|
||||||
* @param synth FluidSynth instance
|
* @param synth FluidSynth instance
|
||||||
|
|
Loading…
Reference in a new issue