[xmp] Fix mixer pan setting option

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 14 years ago
parent 8fb2f8e311
commit 8ebefe6ab8
  1. 5
      src/main.c
  2. 2
      src/options.c

@ -164,6 +164,7 @@ int main(int argc, char **argv)
memset(&control, 0, sizeof (struct control));
options.verbose = 1;
options.rate = 44100;
options.mix = -1;
options.driver_id = NULL;
get_options(argc, argv, &options);
@ -235,6 +236,10 @@ int main(int argc, char **argv)
setenv("XMP_INSTRUMENT_PATH", options.ins_path, 1);
}
if (options.mix >= 0) {
xmp_mixer_mix(handle, options.mix);
}
for (first = optind; optind < argc; optind++) {
if (options.verbose > 0) {
report("\nLoading %s... (%d of %d)\n",

@ -130,7 +130,7 @@ void get_options(int argc, char **argv, struct options *options)
int dparm = 0;
int o;
#define OPTIONS "a:b:cD:d:f:hI:iLlM:mno:qRS:s:T:t:uVv"
#define OPTIONS "a:b:cD:d:f:hI:iLlM:mno:P:qRS:s:T:t:uVv"
while ((o = getopt_long(argc, argv, OPTIONS, lopt, &optidx)) != -1) {
switch (o) {
case 'a':

Loading…
Cancel
Save