diff --git a/src/main.c b/src/main.c index ac16728..f80f201 100644 --- a/src/main.c +++ b/src/main.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", diff --git a/src/options.c b/src/options.c index 2260620..ae230c4 100644 --- a/src/options.c +++ b/src/options.c @@ -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':