From 975427ea4fba04d990e48161f510fc23ed262a79 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Aug 2021 16:05:46 +0200 Subject: [PATCH] Add GUI prefs to disable VST2/3 support --- gtk2_ardour/rc_option_editor.cc | 38 +++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 936dce3074..0f3b976690 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -3732,14 +3732,48 @@ These settings will only take effect after %1 is restarted.\n\ #if (defined AUDIOUNIT_SUPPORT && defined MACVST_SUPPORT) bo = new BoolOption ( - "", - _("Enable Mac VST support (requires restart or re-scan)"), + "use-macvst", + _("Enable Mac VST2 support (requires restart or re-scan)"), sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_macvst), sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_macvst) ); add_option (_("Plugins/VST"), bo); #endif +#ifndef MIXBUS + +#ifdef WINDOWS_VST_SUPPORT + bo = new BoolOption ( + "use-windows-vst", + _("Enable Windows VST2 support (requires restart or re-scan)"), + sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_windows_vst), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_windows_vst) + ); + add_option (_("Plugins/VST"), bo); +#endif + +#ifdef LXVST_SUPPORT + bo = new BoolOption ( + "use-lxvst", + _("Enable Linux VST2 support (requires restart or re-scan)"), + sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_lxvst), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_lxvst) + ); + add_option (_("Plugins/VST"), bo); +#endif + +#ifdef VST3_SUPPORT + bo = new BoolOption ( + "use-vst3", + _("Enable VST3 support (requires restart or re-scan)"), + sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_vst3), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_vst3) + ); + add_option (_("Plugins/VST"), bo); +#endif + +#endif // !Mixbus + #if (defined WINDOWS_VST_SUPPORT || defined MACVST_SUPPORT || defined LXVST_SUPPORT) add_option (_("Plugins/VST"), new OptionEditorHeading (_("VST 2.x")));