4 * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __JR_JACK_RACK_H__
22 #define __JR_JACK_RACK_H__
28 #include "plugin_mgr.h"
29 #include "plugin_settings.h"
32 typedef struct _saved_plugin saved_plugin_t;
39 typedef struct _saved_rack saved_rack_t;
43 unsigned long channels;
44 jack_nframes_t sample_rate;
48 typedef struct _jack_rack jack_rack_t;
52 plugin_mgr_t * plugin_mgr;
53 process_info_t * procinfo;
54 unsigned long channels;
55 GSList * saved_plugins;
58 jack_rack_t * jack_rack_new (const char * client_name, unsigned long channels);
59 void jack_rack_destroy (jack_rack_t * jack_rack);
61 int jack_rack_open_file (jack_rack_t * jack_rack, const char * filename);
62 void jack_rack_add_plugin (jack_rack_t * jack_rack, plugin_t * plugin);
63 void jack_rack_add_saved_plugin (jack_rack_t * jack_rack, struct _saved_plugin * saved_plugin);
65 plugin_t * jack_rack_instantiate_plugin (jack_rack_t * jack_rack, plugin_desc_t * desc);
67 #endif /* __JR_JACK_RACK_H__ */