2 terminatorX - realtime audio scratching software
3 Copyright (C) 1999-2016 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, see <http://www.gnu.org/licenses/>.
18 File: tX_ladspa_class.h
20 Description: Header to tX_ladspa_class.cc - see there for more info
23 #ifndef _h_tx_ladspa_class
24 #define _h_tx_ladspa_class 1
30 #include "tX_ladspa.h"
40 class LADSPA_Class { // Yeah, I know "class" name for C++ class - but it just seems to fit best...
42 static LADSPA_Class *root;
43 static LADSPA_Class *unclassified;
45 static std::list <char *> rdf_files;
46 static vtt_class *current_vtt;
47 static bool liblrdf_error;
51 std::list <LADSPA_Class *> subclasses;
52 std::list <long> registered_ids;
53 std::list <LADSPA_Plugin *> plugins;
54 std::list <LADSPA_Stereo_Plugin *> stereo_plugins;
56 static void scandir(char *dir);
57 bool add_plugin_instance(LADSPA_Plugin *, LADSPA_Plugin_Type);
58 void insert_class(LADSPA_Class *);
59 void insert_plugin(LADSPA_Plugin *, LADSPA_Plugin_Type);
60 int plugins_in_class(LADSPA_Plugin_Type type);
62 GtkWidget *get_menu(LADSPA_Plugin_Type);
65 LADSPA_Class(const char *uri);
66 LADSPA_Class(); // For the unclassified class;
68 static bool add_plugin(LADSPA_Plugin *plugin);
69 static bool add_stereo_plugin(LADSPA_Stereo_Plugin *plugin);
73 static GtkWidget *get_ladspa_menu();
74 static GtkWidget *get_stereo_ladspa_menu();
75 static void set_current_vtt(vtt_class *vtt) { current_vtt=vtt; }
76 static vtt_class *get_current_vtt() { return current_vtt; }