basic Mac VST Cocoa UI support

This commit is contained in:
Robin Gareus 2016-11-13 16:32:30 +01:00
parent 8b93fb02f3
commit 80fa696564
10 changed files with 293 additions and 7 deletions

View file

@ -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);
@ -501,6 +505,18 @@ PluginSelector::lxvst_refiller (const std::string&)
#endif
}
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)
@ -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