2 terminatorX - realtime audio scratching software
3 Copyright (C) 1999-2003 Alexander König
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
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
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 File: tX_ladspa_class.h
21 Description: Header to tX_ladspa_class.cc - see there for more info
24 #ifndef _h_tx_ladspa_class
25 #define _h_tx_ladspa_class 1
31 #include "tX_ladspa.h"
41 class LADSPA_Class { // Yeah, I know "class" name for C++ class - but it just seems to fit best...
43 static LADSPA_Class *root;
44 static LADSPA_Class *unclassified;
46 static std::list <char *> rdf_files;
47 static vtt_class *current_vtt;
48 static bool liblrdf_error;
52 std::list <LADSPA_Class *> subclasses;
53 std::list <long> registered_ids;
54 std::list <LADSPA_Plugin *> plugins;
55 std::list <LADSPA_Stereo_Plugin *> stereo_plugins;
57 static void scandir(char *dir);
58 bool add_plugin_instance(LADSPA_Plugin *, LADSPA_Plugin_Type);
59 void insert_class(LADSPA_Class *);
60 void insert_plugin(LADSPA_Plugin *, LADSPA_Plugin_Type);
61 int plugins_in_class(LADSPA_Plugin_Type type);
63 GtkWidget *get_menu(LADSPA_Plugin_Type);
66 LADSPA_Class(char *uri);
67 LADSPA_Class(); // For the unclassified class;
69 static bool add_plugin(LADSPA_Plugin *plugin);
70 static bool add_stereo_plugin(LADSPA_Stereo_Plugin *plugin);
74 static GtkWidget *get_ladspa_menu();
75 static GtkWidget *get_stereo_ladspa_menu();
76 static void set_current_vtt(vtt_class *vtt) { current_vtt=vtt; }
77 static vtt_class *get_current_vtt() { return current_vtt; }