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"
36 class LADSPA_Class { // Yeah, I know "class" name for C++ class - but it just seems to fit best...
38 static LADSPA_Class *root;
39 static LADSPA_Class *unclassified;
40 static std::list <char *> rdf_files;
41 static vtt_class *current_vtt;
42 static bool liblrdf_error;
46 std::list <LADSPA_Class *> subclasses;
47 std::list <long> registered_ids;
48 std::list <LADSPA_Plugin *> plugins;
50 static void scandir(char *dir);
51 bool add_plugin_instance(LADSPA_Plugin *);
52 void insert_class(LADSPA_Class *);
53 void insert_plugin(LADSPA_Plugin *);
55 GtkWidget *get_menu();
58 LADSPA_Class(char *uri);
59 LADSPA_Class(); // For the unclassified class;
61 static bool add_plugin(LADSPA_Plugin *plugin);
64 static GtkWidget *get_ladspa_menu();
65 static void set_current_vtt(vtt_class *vtt) { current_vtt=vtt; }
66 static vtt_class *get_current_vtt() { return current_vtt; }