diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-13 16:32:30 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-13 16:35:06 +0100 |
commit | 80fa696564a2b261b6cf751ff61e4d885d3a2dc0 (patch) | |
tree | e8a568760dc06daf3283523f1a05cfb8f5500554 /gtk2_ardour/plugin_selector.cc | |
parent | 8b93fb02f38148c25c91ed41a4f12735be38dbf0 (diff) |
basic Mac VST Cocoa UI support
Diffstat (limited to 'gtk2_ardour/plugin_selector.cc')
-rw-r--r-- | gtk2_ardour/plugin_selector.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc index 3a0fed0d67..dd3a3a908d 100644 --- a/gtk2_ardour/plugin_selector.cc +++ b/gtk2_ardour/plugin_selector.cc @@ -341,6 +341,9 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string& case LXVST: compstr = X_("LXVST"); break; + case MacVST: + compstr = X_("MacVST"); + break; case Lua: compstr = X_("Lua"); break; @@ -390,6 +393,7 @@ PluginSelector::refill () lv2_refiller (filterstr); vst_refiller (filterstr); lxvst_refiller (filterstr); + mac_vst_refiller (filterstr); au_refiller (filterstr); lua_refiller (filterstr); @@ -502,6 +506,18 @@ PluginSelector::lxvst_refiller (const std::string&) } void +#ifdef MACVST_SUPPORT +PluginSelector::mac_vst_refiller (const std::string& filterstr) +#else +PluginSelector::mac_vst_refiller (const std::string&) +#endif +{ +#ifdef MACVST_SUPPORT + refiller (manager.mac_vst_plugin_info(), filterstr, "MacVST"); +#endif +} + +void #ifdef AUDIOUNIT_SUPPORT PluginSelector::au_refiller (const std::string& filterstr) #else @@ -736,6 +752,9 @@ PluginSelector::build_plugin_menu () #ifdef LXVST_SUPPORT all_plugs.insert (all_plugs.end(), manager.lxvst_plugin_info().begin(), manager.lxvst_plugin_info().end()); #endif +#ifdef MACVST_SUPPORT + all_plugs.insert (all_plugs.end(), manager.mac_vst_plugin_info().begin(), manager.mac_vst_plugin_info().end()); +#endif #ifdef AUDIOUNIT_SUPPORT all_plugs.insert (all_plugs.end(), manager.au_plugin_info().begin(), manager.au_plugin_info().end()); #endif |