|
|
|
|
@ -74,6 +74,7 @@ static void usage(char *s) |
|
|
|
|
" -s --start num Start from the specified order\n" |
|
|
|
|
" -t --time num Maximum playing time in seconds\n" |
|
|
|
|
" --vblank Force vblank timing in Amiga modules\n" |
|
|
|
|
" -z --sequence num Play the specified sequence (0=main)\n"
|
|
|
|
|
"\nMixer options:\n" |
|
|
|
|
" -a --amplify {0|1|2|3} Amplification factor: 0=Normal, 1=x2, 2=x4, 3=x8\n" |
|
|
|
|
" -b --bits {8|16} Software mixer resolution (8 or 16 bits)\n" |
|
|
|
|
@ -134,6 +135,7 @@ static const struct option lopt[] = { |
|
|
|
|
{ "vblank", 0, 0, OPT_VBLANK }, |
|
|
|
|
{ "version", 0, 0, 'V' }, |
|
|
|
|
{ "verbose", 0, 0, 'v' }, |
|
|
|
|
{ "sequence", 1, 0, 'z' }, |
|
|
|
|
{ NULL, 0, 0, 0 } |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
@ -142,7 +144,7 @@ void get_options(int argc, char **argv, struct options *options) |
|
|
|
|
int optidx = 0; |
|
|
|
|
int o; |
|
|
|
|
|
|
|
|
|
#define OPTIONS "a:b:cD:d:Ff:hI:i:LlM:mNo:P:qRrS:s:T:t:uVv" |
|
|
|
|
#define OPTIONS "a:b:cD:d:Ff:hI:i:LlM:mNo:P:qRrS:s:T:t:uVvz:" |
|
|
|
|
while ((o = getopt_long(argc, argv, OPTIONS, lopt, &optidx)) != -1) { |
|
|
|
|
switch (o) { |
|
|
|
|
case 'a': |
|
|
|
|
@ -291,6 +293,9 @@ void get_options(int argc, char **argv, struct options *options) |
|
|
|
|
case 'v': |
|
|
|
|
options->verbose++; |
|
|
|
|
break; |
|
|
|
|
case 'z': |
|
|
|
|
options->sequence = strtoul(optarg, NULL, 0); |
|
|
|
|
break; |
|
|
|
|
case 'h': |
|
|
|
|
usage(argv[0]); |
|
|
|
|
default: |
|
|
|
|
|