]> git.sesse.net Git - mlt/blob - src/modules/jackrack/jack_rack.h
Merge ../mlt++
[mlt] / src / modules / jackrack / jack_rack.h
1 /*
2  * JACK Rack
3  *
4  * Original:
5  * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
6  *
7  * Modification for MLT:
8  * Copyright (C) 2004 Ushodaya Enterprises Limited
9  * Author: Dan Dennedy <dan@dennedy.org>
10  *
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.
15  *
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.
20  *
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.
24  */
25
26 #ifndef __JR_JACK_RACK_H__
27 #define __JR_JACK_RACK_H__
28
29 #include <glib.h>
30 #include <ladspa.h>
31
32 #include "plugin.h"
33 #include "plugin_mgr.h"
34 #include "plugin_settings.h"
35 #include "process.h"
36
37 typedef struct _saved_plugin saved_plugin_t;
38
39 struct _saved_plugin
40 {
41   settings_t     *settings;
42 };
43
44 typedef struct _saved_rack   saved_rack_t;
45
46 struct _saved_rack
47 {
48   unsigned long  channels;
49   jack_nframes_t sample_rate;
50   GSList *       plugins;
51 };
52
53 typedef struct _jack_rack jack_rack_t;
54
55 struct _jack_rack
56 {
57   plugin_mgr_t *    plugin_mgr;
58   process_info_t *  procinfo;
59   unsigned long     channels;
60   GSList *          saved_plugins;
61 };
62
63 jack_rack_t * jack_rack_new     (const char * client_name, unsigned long channels);
64 void          jack_rack_destroy (jack_rack_t * jack_rack);
65
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);
69
70 plugin_t * jack_rack_instantiate_plugin (jack_rack_t * jack_rack, plugin_desc_t * desc);
71
72 #endif /* __JR_JACK_RACK_H__ */