Index: src/Patchage.cpp =================================================================== --- src/Patchage.cpp (revision 1149) +++ src/Patchage.cpp (working copy) @@ -88,6 +88,7 @@ #endif #ifdef HAVE_ALSA , _alsa_driver(NULL) + , _alsa_driver_autoattach(true) , INIT_WIDGET(_menu_alsa_connect) , INIT_WIDGET(_menu_alsa_disconnect) #endif @@ -143,6 +144,17 @@ _lash_driver = new LashDriver(this, argc, argv); #endif +#ifdef HAVE_ALSA + while (argc > 0) { + if (strcmp(*argv, "-A") == 0) { + _alsa_driver_autoattach = false; + } + + argv++; + argc--; + } +#endif + xml->get_widget_derived("jack_settings_win", _jack_settings_dialog); Glib::set_application_name("Patchage"); @@ -269,7 +281,8 @@ _lash_driver->attach(true); #endif #ifdef HAVE_ALSA - _alsa_driver->attach(); + if (_alsa_driver_autoattach) + _alsa_driver->attach(); #endif _enable_refresh = true; Index: src/Patchage.hpp =================================================================== --- src/Patchage.hpp (revision 1149) +++ src/Patchage.hpp (working copy) @@ -101,6 +101,7 @@ #ifdef HAVE_ALSA AlsaDriver* _alsa_driver; + bool _alsa_driver_autoattach; Widget _menu_alsa_connect; Widget _menu_alsa_disconnect; void menu_alsa_connect();