diff options
Diffstat (limited to 'pd/src/s_main.c')
-rw-r--r-- | pd/src/s_main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pd/src/s_main.c b/pd/src/s_main.c index a8030f40..1aa106d6 100644 --- a/pd/src/s_main.c +++ b/pd/src/s_main.c @@ -2,7 +2,7 @@ * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ -char pd_version[] = "Pd version 0.39 TEST 3\n"; +char pd_version[] = "Pd version 0.39 TEST 4\n"; char pd_compiletime[] = __TIME__; char pd_compiledate[] = __DATE__; @@ -346,6 +346,10 @@ static char *(usagemessage[]) = { "-nomidiin -- suppress MIDI input\n", "-nomidiout -- suppress MIDI output\n", "-nomidi -- suppress MIDI input and output\n", +#ifdef USEAPI_ALSA +"-alsamidi -- use ALSA midi API\n", +#endif + "\nother flags:\n", "-path <path> -- add to file search path\n", @@ -604,6 +608,11 @@ int sys_argparse(int argc, char **argv) else goto usage; argc -= 2; argv +=2; } + else if (!strcmp(*argv, "-alsamidi")) + { + sys_set_midi_api(API_ALSA); + argc--; argv++; + } #endif #ifdef USEAPI_JACK else if (!strcmp(*argv, "-jack")) |