5 * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
7 * Modification for MLT:
8 * Copyright (C) 2004 Ushodaya Enterprises Limited
9 * Author: Dan Dennedy <dan@dennedy.org>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef __JR_JACK_RACK_H__
27 #define __JR_JACK_RACK_H__
33 #include "plugin_mgr.h"
34 #include "plugin_settings.h"
37 typedef struct _saved_plugin saved_plugin_t
;
44 typedef struct _saved_rack saved_rack_t
;
48 unsigned long channels
;
49 jack_nframes_t sample_rate
;
53 typedef struct _jack_rack jack_rack_t
;
57 plugin_mgr_t
* plugin_mgr
;
58 process_info_t
* procinfo
;
59 unsigned long channels
;
60 GSList
* saved_plugins
;
63 jack_rack_t
* jack_rack_new (const char * client_name
, unsigned long channels
);
64 void jack_rack_destroy (jack_rack_t
* jack_rack
);
66 int jack_rack_open_file (jack_rack_t
* jack_rack
, const char * filename
);
67 void jack_rack_add_plugin (jack_rack_t
* jack_rack
, plugin_t
* plugin
);
68 void jack_rack_add_saved_plugin (jack_rack_t
* jack_rack
, struct _saved_plugin
* saved_plugin
);
70 plugin_t
* jack_rack_instantiate_plugin (jack_rack_t
* jack_rack
, plugin_desc_t
* desc
);
72 #endif /* __JR_JACK_RACK_H__ */