add option to disable or bypass plugins
This commit is contained in:
parent
531e71b485
commit
0370b1988d
@ -60,6 +60,7 @@ print_help (const char *execname)
|
|||||||
<< _(" -h, --help Print this message\n")
|
<< _(" -h, --help Print this message\n")
|
||||||
<< _(" -a, --no-announcements Do not contact website for announcements\n")
|
<< _(" -a, --no-announcements Do not contact website for announcements\n")
|
||||||
<< _(" -b, --bindings Print all possible keyboard binding names\n")
|
<< _(" -b, --bindings Print all possible keyboard binding names\n")
|
||||||
|
<< _(" -B, --bypass-plugins Bypass all plugins in an existing session\n")
|
||||||
<< _(" -c, --name <name> Use a specific backend client name, default is ardour\n")
|
<< _(" -c, --name <name> Use a specific backend client name, default is ardour\n")
|
||||||
<< _(" -d, --disable-plugins Disable all plugins in an existing session\n")
|
<< _(" -d, --disable-plugins Disable all plugins in an existing session\n")
|
||||||
<< _(" -D, --debug <options> Set debug flags. Use \"-D list\" to see available options\n")
|
<< _(" -D, --debug <options> Set debug flags. Use \"-D list\" to see available options\n")
|
||||||
@ -83,7 +84,7 @@ print_help (const char *execname)
|
|||||||
int
|
int
|
||||||
ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
|
ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
const char *optstring = "abc:C:dD:hk:E:m:N:nOp:PST:U:vV";
|
const char *optstring = "abBc:C:dD:hk:E:m:N:nOp:PST:U:vV";
|
||||||
const char *execname = strrchr (argv[0], '/');
|
const char *execname = strrchr (argv[0], '/');
|
||||||
|
|
||||||
if (getenv ("ARDOUR_SAE")) {
|
if (getenv ("ARDOUR_SAE")) {
|
||||||
@ -102,6 +103,7 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
|
|||||||
{ "help", 0, 0, 'h' },
|
{ "help", 0, 0, 'h' },
|
||||||
{ "no-announcements", 0, 0, 'a' },
|
{ "no-announcements", 0, 0, 'a' },
|
||||||
{ "bindings", 0, 0, 'b' },
|
{ "bindings", 0, 0, 'b' },
|
||||||
|
{ "bypass-plugins", 0, 0, 'B' },
|
||||||
{ "disable-plugins", 0, 0, 'd' },
|
{ "disable-plugins", 0, 0, 'd' },
|
||||||
{ "debug", 1, 0, 'D' },
|
{ "debug", 1, 0, 'D' },
|
||||||
{ "no-splash", 0, 0, 'n' },
|
{ "no-splash", 0, 0, 'n' },
|
||||||
@ -149,6 +151,10 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
|
|||||||
show_key_actions = true;
|
show_key_actions = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'B':
|
||||||
|
ARDOUR::Session::set_bypass_all_loaded_plugins (true);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'd':
|
case 'd':
|
||||||
ARDOUR::Session::set_disable_all_loaded_plugins (true);
|
ARDOUR::Session::set_disable_all_loaded_plugins (true);
|
||||||
break;
|
break;
|
||||||
|
@ -86,11 +86,12 @@ print_help ()
|
|||||||
|
|
||||||
int main (int argc, char* argv[])
|
int main (int argc, char* argv[])
|
||||||
{
|
{
|
||||||
const char *optstring = "vhdD:c:VOU:P";
|
const char *optstring = "vhBdD:c:VOU:P";
|
||||||
|
|
||||||
const struct option longopts[] = {
|
const struct option longopts[] = {
|
||||||
{ "version", 0, 0, 'v' },
|
{ "version", 0, 0, 'v' },
|
||||||
{ "help", 0, 0, 'h' },
|
{ "help", 0, 0, 'h' },
|
||||||
|
{ "bypass-plugins", 1, 0, 'B' },
|
||||||
{ "disable-plugins", 1, 0, 'd' },
|
{ "disable-plugins", 1, 0, 'd' },
|
||||||
{ "debug", 1, 0, 'D' },
|
{ "debug", 1, 0, 'D' },
|
||||||
{ "name", 1, 0, 'c' },
|
{ "name", 1, 0, 'c' },
|
||||||
@ -128,6 +129,10 @@ int main (int argc, char* argv[])
|
|||||||
backend_client_name = optarg;
|
backend_client_name = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'B':
|
||||||
|
ARDOUR::Session::set_bypass_all_loaded_plugins (true);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'd':
|
case 'd':
|
||||||
ARDOUR::Session::set_disable_all_loaded_plugins (true);
|
ARDOUR::Session::set_disable_all_loaded_plugins (true);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user