Skip to content

Commit

Permalink
add fluid_synth_count_effects_groups()
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Jul 12, 2018
1 parent 9546e4a commit af1fc75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/fluidsynth/synth.h
Expand Up @@ -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 */
Expand Down
16 changes: 16 additions & 0 deletions src/synth/fluid_synth.c
Expand Up @@ -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
Expand Down

0 comments on commit af1fc75

Please sign in to comment.