2 Copyright (C) 2000-2007 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __ardour_plugin_manager_h__
21 #define __ardour_plugin_manager_h__
27 #include <ardour/types.h>
28 #include <ardour/plugin.h>
31 #include <ardour/lv2_plugin.h>
43 /* realtime plugin APIs */
45 ARDOUR::PluginInfoList &vst_plugin_info () { return _vst_plugin_info; }
46 ARDOUR::PluginInfoList &ladspa_plugin_info () { return _ladspa_plugin_info; }
47 ARDOUR::PluginInfoList &lv2_plugin_info () { return _lv2_plugin_info; }
48 ARDOUR::PluginInfoList &au_plugin_info () { return _au_plugin_info; }
52 int add_ladspa_directory (std::string dirpath);
53 int add_vst_directory (std::string dirpath);
55 static PluginManager* the_manager() { return _manager; }
58 ARDOUR::PluginInfoList _vst_plugin_info;
59 ARDOUR::PluginInfoList _ladspa_plugin_info;
60 ARDOUR::PluginInfoList _lv2_plugin_info;
61 ARDOUR::PluginInfoList _au_plugin_info;
67 std::map<uint32_t, std::string> rdf_type;
69 std::string ladspa_path;
72 void ladspa_refresh ();
75 void add_lrdf_data (const std::string &path);
76 void add_ladspa_presets ();
77 void add_vst_presets ();
78 void add_presets (std::string domain);
86 int vst_discover_from_path (std::string path);
87 int vst_discover (std::string path);
89 int ladspa_discover_from_path (std::string path);
90 int ladspa_discover (std::string path);
92 std::string get_ladspa_category (uint32_t id);
93 std::vector<uint32_t> ladspa_plugin_whitelist;
95 static PluginManager* _manager; // singleton
98 } /* namespace ARDOUR */
100 #endif /* __ardour_plugin_manager_h__ */