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