Add files via upload
[fluidsynth-winbin.git] / bin64 / fluidsynth-2.0.9 / usr / include / fluidsynth / ladspa.h
blob978ce6d359d51f220d16b050dccffa176a6f3cf8
1 /* FluidSynth - A Software Synthesizer
3 * Copyright (C) 2003 Peter Hanappe and others.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1 of
8 * the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA
21 #ifndef _FLUIDSYNTH_LADSPA_H
22 #define _FLUIDSYNTH_LADSPA_H
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 /**
29 * @file ladspa.h
30 * @brief Functions for manipulating the ladspa effects unit
32 * This header defines useful functions for programatically manipulating the ladspa
33 * effects unit of the synth that can be retrieved via fluid_synth_get_ladspa_fx().
35 * Using any of those functions requires fluidsynth to be compiled with ladspa support.
36 * Else all of those functions are useless dummies.
39 FLUIDSYNTH_API int fluid_ladspa_is_active(fluid_ladspa_fx_t *fx);
40 FLUIDSYNTH_API int fluid_ladspa_activate(fluid_ladspa_fx_t *fx);
41 FLUIDSYNTH_API int fluid_ladspa_deactivate(fluid_ladspa_fx_t *fx);
42 FLUIDSYNTH_API int fluid_ladspa_reset(fluid_ladspa_fx_t *fx);
43 FLUIDSYNTH_API int fluid_ladspa_check(fluid_ladspa_fx_t *fx, char *err, int err_size);
45 FLUIDSYNTH_API int fluid_ladspa_host_port_exists(fluid_ladspa_fx_t *fx, const char *name);
47 FLUIDSYNTH_API int fluid_ladspa_add_buffer(fluid_ladspa_fx_t *fx, const char *name);
48 FLUIDSYNTH_API int fluid_ladspa_buffer_exists(fluid_ladspa_fx_t *fx, const char *name);
50 FLUIDSYNTH_API int fluid_ladspa_add_effect(fluid_ladspa_fx_t *fx, const char *effect_name,
51 const char *lib_name, const char *plugin_name);
52 FLUIDSYNTH_API int fluid_ladspa_effect_can_mix(fluid_ladspa_fx_t *fx, const char *name);
53 FLUIDSYNTH_API int fluid_ladspa_effect_set_mix(fluid_ladspa_fx_t *fx, const char *name, int mix, float gain);
54 FLUIDSYNTH_API int fluid_ladspa_effect_port_exists(fluid_ladspa_fx_t *fx, const char *effect_name, const char *port_name);
55 FLUIDSYNTH_API int fluid_ladspa_effect_set_control(fluid_ladspa_fx_t *fx, const char *effect_name,
56 const char *port_name, float val);
57 FLUIDSYNTH_API int fluid_ladspa_effect_link(fluid_ladspa_fx_t *fx, const char *effect_name,
58 const char *port_name, const char *name);
60 #ifdef __cplusplus
62 #endif
64 #endif /* _FLUIDSYNTH_LADSPA_H */