version 1.7, 2005/07/28 10:59:11 |
version 1.8, 2005/11/06 00:56:51 |
|
|
int ch; |
int ch; |
int listdevs = 0; |
int listdevs = 0; |
int example = 0; |
int example = 0; |
|
int gmreset = 0; |
int nmidi; |
int nmidi; |
char *file = DEVMUSIC; |
char *file = DEVMUSIC; |
struct synth_info info; |
struct synth_info info; |
FILE *f; |
FILE *f; |
const char *errstr; |
const char *errstr; |
|
|
while ((ch = getopt(argc, argv, "?d:f:lmqt:vx")) != -1) { |
while ((ch = getopt(argc, argv, "?d:f:glmqt:vx")) != -1) { |
switch (ch) { |
switch (ch) { |
case 'd': |
case 'd': |
unit = strtonum(optarg, 0, INT_MAX, &errstr); |
unit = strtonum(optarg, 0, INT_MAX, &errstr); |
|
|
case 'f': |
case 'f': |
file = optarg; |
file = optarg; |
break; |
break; |
|
case 'g': |
|
gmreset++; |
|
break; |
case 'l': |
case 'l': |
listdevs++; |
listdevs++; |
break; |
break; |
|
|
} |
} |
exit(0); |
exit(0); |
} |
} |
midireset(); |
if (gmreset) |
|
midireset(); |
if (example) |
if (example) |
playdata(sample, sizeof sample, "<Gubben Noa>"); |
playdata(sample, sizeof sample, "<Gubben Noa>"); |
else if (argc == 0) |
else if (argc == 0) |