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_PLUGIN_H__
27 #define __JR_PLUGIN_H__
31 #include <jack/jack.h>
34 #include "plugin_desc.h"
36 typedef struct _ladspa_holder ladspa_holder_t
;
37 typedef struct _plugin plugin_t
;
41 LADSPA_Handle instance
;
42 lff_t
* ui_control_fifos
;
43 LADSPA_Data
* control_memory
;
45 jack_port_t
** aux_ports
;
54 ladspa_holder_t
* holders
;
55 LADSPA_Data
** audio_input_memory
;
56 LADSPA_Data
** audio_output_memory
;
58 gboolean wet_dry_enabled
;
59 /* 1.0 = all wet, 0.0 = all dry, 0.5 = 50% wet/50% dry */
60 LADSPA_Data
* wet_dry_values
;
61 lff_t
* wet_dry_fifos
;
66 const LADSPA_Descriptor
* descriptor
;
68 struct _jack_rack
* jack_rack
;
72 void process_add_plugin (process_info_t
*, plugin_t
*plugin
);
73 plugin_t
* process_remove_plugin (process_info_t
*, plugin_t
*plugin
);
74 void process_ablise_plugin (process_info_t
*, plugin_t
*plugin
, gboolean able
);
75 void process_ablise_plugin_wet_dry (process_info_t
*, plugin_t
*plugin
, gboolean enable
);
76 void process_move_plugin (process_info_t
*, plugin_t
*plugin
, gint up
);
77 plugin_t
* process_change_plugin (process_info_t
*, plugin_t
*plugin
, plugin_t
* new_plugin
);
82 plugin_t
* plugin_new (plugin_desc_t
* plugin_desc
, struct _jack_rack
* jack_rack
);
83 void plugin_destroy (plugin_t
* plugin
);
85 void plugin_connect_input_ports (plugin_t
* plugin
, LADSPA_Data
** inputs
);
86 void plugin_connect_output_ports (plugin_t
* plugin
);
88 #endif /* __JR_PLUGIN_H__ */