GUI tweaks.
[ng-jackspa.git] / jackspa.hpp
blob4c2d9f9e5d5b253f3632f85bd087a76ce8f1b438
1 // jackspa, a dirt-simple LADSPA host for JACK
2 // Copyright (C) 2007 Nick Thomas
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of version 2 of the GNU General Public
6 // License as published by the Free Software Foundation; the terms of
7 // any later version are NOT APPLICABLE.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License along
15 // with this program; if not, write to the Free Software Foundation, Inc.,
16 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 #ifndef JACKSPA_HPP
19 #define JACKSPA_HPP
21 #include <jack/jack.h>
22 #include <ladspa.h>
24 typedef struct {
25 char *client_name;
26 jack_client_t *jack_client;
27 jack_port_t **ports;
28 int num_control_ports;
29 float *control_port_values;
30 float *control_port_buffer;
31 LADSPA_Descriptor *descriptor;
32 LADSPA_Handle handle;
33 } state_t;
35 void jackspa_init(state_t *state, int argc, char **argv);
37 #endif