wiping again...
This commit is contained in:
21
main.c
21
main.c
@@ -42,6 +42,21 @@ sleep(1);
|
||||
/* check the sound subsystem */
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
int start_the_engine(int k)
|
||||
{
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( %d )\n", __func__, k);
|
||||
#endif
|
||||
|
||||
if (k) {
|
||||
fprintf(stderr, "%s: k %d is not null ?\n", __func__, k);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
@@ -63,12 +78,14 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
int opt;
|
||||
int mode = 0;
|
||||
char *listname = "files/samples.list";
|
||||
|
||||
while ((opt = getopt(argc, argv, "hl:v")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "hl:m:v")) != -1) {
|
||||
switch(opt) {
|
||||
case 'h': help(0); break;
|
||||
case 'l': listname = optarg; break;
|
||||
case 'm': mode = atoi(optarg); break;
|
||||
case 'v': verbosity++; break;
|
||||
}
|
||||
}
|
||||
@@ -80,7 +97,7 @@ fprintf(stderr, "argc = %d, optind = %d\n", argc, optind);
|
||||
foo = lecture_liste_des_samples(listname, the_samples);
|
||||
fprintf(stderr,"retour lecture liste '%s' -> %d\n", listname, foo);
|
||||
|
||||
foo = start_the_engine();
|
||||
foo = start_the_engine(mode);
|
||||
fprintf(stderr,"retour start engine -> %d\n", foo);
|
||||
|
||||
introduction(0);
|
||||
|
||||
Reference in New Issue
Block a user