Browse Source

add hackish command line parsing so that old use of -X seq (e.g. by qjackctl) has the desired effect

tags/0.124.0
Paul Davis 12 years ago
parent
commit
8f2ad9facc
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      jackd/jackd.c

+ 20
- 1
jackd/jackd.c View File

@@ -716,7 +716,7 @@ main (int argc, char *argv[])
break;

case 'd':
seen_driver = 1;
seen_driver = optind + 1;
driver_name = optarg;
break;

@@ -830,7 +830,26 @@ main (int argc, char *argv[])
exit (1);
}

/* DIRTY HACK needed to pick up -X supplied as part of ALSA driver args. This is legacy
hack to make control apps like qjackctl based on the < 0.124 command line interface
continue to work correctly.

If -X seq was given as part of the driver args, load the ALSA MIDI slave driver.
*/
for (i = seen_driver; i < argc; ++i) {
if (strcmp (argv[i], "-X") == 0) {
if (argc >= i + 2) {
if (strcmp (argv[i+1], "seq") == 0) {
slave_drivers = jack_slist_append (slave_drivers,"alsa_midi");
}
}
break;
}
}

drivers = jack_drivers_load ();

if (!drivers) {
fprintf (stderr, "jackd: no drivers found; exiting\n");
exit (1);


Loading…
Cancel
Save