new command line flag to control strobe-like effects in the GUI

This commit is contained in:
Paul Davis 2023-11-10 10:18:58 -07:00
parent 6b3eb55ff6
commit d60dae8cbe
2 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,7 @@ std::string ARDOUR_COMMAND_LINE::menus_file = "ardour.menus";
bool ARDOUR_COMMAND_LINE::finder_invoked_ardour = false; bool ARDOUR_COMMAND_LINE::finder_invoked_ardour = false;
string ARDOUR_COMMAND_LINE::load_template; string ARDOUR_COMMAND_LINE::load_template;
bool ARDOUR_COMMAND_LINE::check_announcements = true; bool ARDOUR_COMMAND_LINE::check_announcements = true;
bool ARDOUR_COMMAND_LINE::no_strobe = false;
using namespace ARDOUR_COMMAND_LINE; using namespace ARDOUR_COMMAND_LINE;
@ -84,6 +85,7 @@ print_help (const char *execname)
<< _(" -N, --new <session-name> Create a new session from the command line\n") << _(" -N, --new <session-name> Create a new session from the command line\n")
<< _(" -O, --no-hw-optimizations Disable h/w specific optimizations\n") << _(" -O, --no-hw-optimizations Disable h/w specific optimizations\n")
<< _(" -P, --no-connect-ports Do not connect any ports at startup\n") << _(" -P, --no-connect-ports Do not connect any ports at startup\n")
<< _(" -s, --no-strobe Avoid \"strobe-like\" effects in GUI\n")
<< _(" -S, --sync Draw the GUI synchronously\n") << _(" -S, --sync Draw the GUI synchronously\n")
<< _(" -T, --template <name> Use given template for new session\n") << _(" -T, --template <name> Use given template for new session\n")
<< _(" -v, --version Print version and exit\n") << _(" -v, --version Print version and exit\n")
@ -123,6 +125,7 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
{ "sync", 0, 0, 'S' }, { "sync", 0, 0, 'S' },
{ "template", 1, 0, 'T' }, { "template", 1, 0, 'T' },
{ "no-connect-ports", 0, 0, 'P' }, { "no-connect-ports", 0, 0, 'P' },
{ "no-strobe", 0, 0, 's' },
{ 0, 0, 0, 0 } { 0, 0, 0, 0 }
}; };
@ -194,6 +197,10 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
finder_invoked_ardour = true; finder_invoked_ardour = true;
break; break;
case 's':
no_strobe = true;
break;
case 'S': case 'S':
// ; just pass this through to gtk it will figure it out // ; just pass this through to gtk it will figure it out
break; break;

View File

@ -40,6 +40,7 @@ extern std::string menus_file;
extern bool finder_invoked_ardour; extern bool finder_invoked_ardour;
extern std::string load_template; extern std::string load_template;
extern bool check_announcements; extern bool check_announcements;
extern bool no_strobe;
extern int32_t parse_opts (int argc, char *argv[]); extern int32_t parse_opts (int argc, char *argv[]);