diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-09-20 20:29:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-09-20 20:29:47 +0000 |
commit | d4433b9ab384196bb5b8876890863d7939339ee2 (patch) | |
tree | 669f503a04696c7869a14d5c5f6239024ba43e76 /libs/ardour/plugin.cc | |
parent | e09e0035a62ce9f8876b6204682bbb3db474d477 (diff) |
(native) Linux VST support from LinuxDSP
git-svn-id: svn://localhost/ardour2/branches/3.0@10101 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin.cc')
-rw-r--r-- | libs/ardour/plugin.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/ardour/plugin.cc b/libs/ardour/plugin.cc index 90e9146af1..153c624a5a 100644 --- a/libs/ardour/plugin.cc +++ b/libs/ardour/plugin.cc @@ -139,6 +139,12 @@ ARDOUR::find_plugin(Session& session, string identifier, PluginType type) break; #endif +#ifdef LXVST_SUPPORT + case ARDOUR::LXVST: + plugs = mgr->lxvst_plugin_info(); + break; +#endif + #ifdef HAVE_AUDIOUNITS case ARDOUR::AudioUnit: plugs = mgr->au_plugin_info(); @@ -170,6 +176,19 @@ ARDOUR::find_plugin(Session& session, string identifier, PluginType type) } #endif +#ifdef LXVST_SUPPORT + /* hmm, we didn't find it. could be because in older versions of Ardour. + we used to store the name of a VST plugin, not its unique ID. so try + again. + */ + + for (i = plugs.begin(); i != plugs.end(); ++i) { + if (identifier == (*i)->name){ + return (*i)->load (session); + } + } +#endif + return PluginPtr ((Plugin*) 0); } |