diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-08-03 12:20:23 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-08-03 12:20:23 +0000 |
commit | 2b6aa4f50734506bac76650abdc28792f96c9107 (patch) | |
tree | e466aefbce81bcdb2459e7dc1a91bb5d528fa0e3 /libs/ardour/plugin_manager.cc | |
parent | b74c57290073e7e99f8c8908d6d935943ff3eaab (diff) |
Fixed link error.
git-svn-id: svn://localhost/ardour2/trunk@750 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 16d6b12981..0408764c96 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -279,8 +279,6 @@ PluginManager::ladspa_discover (string path) boost::shared_ptr<Plugin> PluginManager::load (Session& session, PluginInfoPtr info) { - void *module; - try { boost::shared_ptr<Plugin> plugin; @@ -304,6 +302,7 @@ PluginManager::load (Session& session, PluginInfoPtr info) #endif // !VST_SUPPORT } else if (info->type == PluginInfo::LADSPA) { + void *module; if ((module = dlopen (info->path.c_str(), RTLD_NOW)) == 0) { error << string_compose(_("LADSPA: cannot load module from \"%1\""), info->path) << endmsg; @@ -340,14 +339,21 @@ ARDOUR::find_plugin(Session& session, string name, long unique_id, PluginInfo::T case PluginInfo::LADSPA: plugs = mgr->ladspa_plugin_info(); break; + +#ifdef VST_SUPPORT case PluginInfo::VST: plugs = mgr->vst_plugin_info(); unique_id = 0; // VST plugins don't have a unique id. break; +#endif + +#ifdef HAVE_COREAUDIO case PluginInfo::AudioUnit: plugs = AUPluginInfo::discover (); unique_id = 0; // Neither do AU. break; +#endif + default: return boost::shared_ptr<Plugin> ((Plugin *) 0); } |