mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 11:21:24 +00:00
Rename function to set effect control port value
This commit is contained in:
parent
bcf711f51a
commit
fa0b210233
3 changed files with 3 additions and 5 deletions
|
@ -2018,7 +2018,7 @@ int fluid_handle_ladspa_set(void *data, int ac, char **av, fluid_ostream_t out)
|
|||
return FLUID_FAILED;
|
||||
}
|
||||
|
||||
if (fluid_ladspa_set_control_port(fx, effect_name, port_name, atof(av[1])) != FLUID_OK)
|
||||
if (fluid_ladspa_set_effect_control(fx, effect_name, port_name, atof(av[1])) != FLUID_OK)
|
||||
{
|
||||
fluid_ostream_printf(out, "Failed to set '%s:%s', maybe it is not a control port?\n",
|
||||
effect_name, port_name);
|
||||
|
|
|
@ -663,15 +663,13 @@ int fluid_ladspa_add_audio_node(fluid_ladspa_fx_t *fx, const char *name)
|
|||
/**
|
||||
* Set the value of an effect control port
|
||||
*
|
||||
* Nodes are searched by case-insensitive string comparison.
|
||||
*
|
||||
* @param fx LADSPA fx instance
|
||||
* @param effect_name name of the effect
|
||||
* @param port_name name of the port
|
||||
* @param val floating point value
|
||||
* @return FLUID_OK on success, FLUID_FAILED on error
|
||||
*/
|
||||
int fluid_ladspa_set_control_port(fluid_ladspa_fx_t *fx, const char *effect_name,
|
||||
int fluid_ladspa_set_effect_control(fluid_ladspa_fx_t *fx, const char *effect_name,
|
||||
const char *port_name, fluid_real_t val)
|
||||
{
|
||||
fluid_ladspa_node_t *node;
|
||||
|
|
|
@ -163,7 +163,7 @@ int fluid_ladspa_plugin_mode(fluid_ladspa_fx_t *fx, const char *name,
|
|||
int fluid_ladspa_effect_port_exists(fluid_ladspa_fx_t *fx, const char *effect_name, const char *port_name);
|
||||
|
||||
int fluid_ladspa_add_audio_node(fluid_ladspa_fx_t *fx, const char *name);
|
||||
int fluid_ladspa_set_control_port(fluid_ladspa_fx_t *fx, const char *effect_name,
|
||||
int fluid_ladspa_set_effect_control(fluid_ladspa_fx_t *fx, const char *effect_name,
|
||||
const char *port_name, fluid_real_t val);
|
||||
int fluid_ladspa_node_exists(fluid_ladspa_fx_t *fx, const char *name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue