aboutsummaryrefslogtreecommitdiff
path: root/desiredata
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-30 03:10:11 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-30 03:10:11 +0000
commitadae8fb842777d9b829a9b773f7dee8a28c47285 (patch)
tree6ed59929aca8e42a6367c89350eb7754ed47a71e /desiredata
parent2eddc4f3b950b4f395cd2314c2dabc02648fe984 (diff)
kill -listdev
svn path=/trunk/; revision=11577
Diffstat (limited to 'desiredata')
-rw-r--r--desiredata/src/s_main.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/desiredata/src/s_main.c b/desiredata/src/s_main.c
index 2a274b18..175b4c69 100644
--- a/desiredata/src/s_main.c
+++ b/desiredata/src/s_main.c
@@ -78,7 +78,6 @@ int sys_midioutdevlist[MAXMIDIOUTDEV] = {1};
static int sys_main_srate;
static int sys_main_dacblocksize = DEFDACBLKSIZE;
static int sys_main_advance;
-static int sys_listplease;
/* jsarlo { */
int sys_externalschedlib;
@@ -193,7 +192,6 @@ static const char *(usagemessage[]) = {
"-nodac -- suppress audio output",
"-noadc -- suppress audio input",
"-noaudio -- suppress audio input and output (-nosound is synonym)",
-"-listdev -- list audio and MIDI devices",
#define NOT_HERE "(support not compiled in)"
@@ -528,15 +526,8 @@ int sys_argparse(int argc, char **argv) {
}
if (ARG("-stdout",1)) {sys_printtofh = stdout; NEXT(1);}
if (ARG("-stderr",1)) {sys_printtofh = stderr; NEXT(1);}
- if (ARG("-guicmd",2)) {
- fprintf(stderr,"Warning: -guicmd ignored");
- NEXT(2);
- }
- if (ARG("-send",2)) {
- sys_messagelist = namelist_append(sys_messagelist, argv[1], 1);
- NEXT(2);
- }
- if (ARG("-listdev",1)) {sys_listplease=1; NEXT(1);}
+ if (ARG("-guicmd",2)) {fprintf(stderr,"Warning: -guicmd ignored"); NEXT(2);}
+ if (ARG("-send",2)) {sys_messagelist = namelist_append(sys_messagelist,argv[1],1); NEXT(2);}
/* jsarlo { */
if (ARG("-schedlib",2)) {
sys_externalschedlib = 1;
@@ -605,7 +596,6 @@ static void sys_afterargparse() {
}
for (int i=0; i<sys_nmidiin; i++) sys_midiindevlist[i]--;
for (int i=0; i<sys_nmidiout; i++) sys_midioutdevlist[i]--;
- if (sys_listplease) sys_listdevs();
/* get the current audio parameters. These are set by the preferences mechanism (sys_loadpreferences()) or
else are the default. Overwrite them with any results of argument parsing, and store them again. */
sys_get_audio_params(&audio_in, &audio_out, &rate, &dacblksize, &advance, &scheduler);