From 4cbd55491dd86ea99e1ea8190a20bd13e0f328ae Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sat, 16 Jul 2005 01:43:18 +0000 Subject: fixed bugs, adopted some patches. svn path=/trunk/; revision=3347 --- pd/src/s_main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pd/src/s_main.c') 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 -- 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")) -- cgit v1.2.1