1 /* jackspa.h - API for LADSPA plugin instances with JACK audio ports
2 * Copyright © 2007 Nick Thomas
3 * Copyright © 2013 Géraud Meyer <graud@gmx.com>
5 * This file is part of ng-jackspa.
7 * ng-jackspa is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License version 2 as published by the
9 * Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with ng-jackspa. If not, see <http://www.gnu.org/licenses/>.
26 #include <jack/jack.h>
32 const char **port_names
; /* indexed by the LADSPA port index */
33 jack_client_t
*jack_client
;
34 jack_port_t
**jack_ports
; /* indexed by the LADSPA port index */
35 unsigned long num_control_ports
; /* input control ports */
36 unsigned long num_meter_ports
; /* output control ports */
37 float *control_port_values
; /* indexed by the LADSPA port index */
39 LADSPA_Descriptor
*descriptor
;
43 /* Initial config (command line switches) */
44 extern const GOptionEntry jackspa_entries
[];
46 int jackspa_init(state_t
*state
, int argc
, char **argv
);
48 int jackspa_fini(state_t
*state
);