From: Clemens Ladisch Date: Fri, 2 Jul 2004 12:21:13 +0000 (+0000) Subject: document -P option everywhere; X-Git-Tag: v1.0.6~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9615f455287525efb7cb28c66b0cbfc057aa0b41;p=alsa-tools.git document -P option everywhere; actually use the parameter's value instead of the default path --- diff --git a/seq/sbiload/README b/seq/sbiload/README index a44d4e8..4014c80 100644 --- a/seq/sbiload/README +++ b/seq/sbiload/README @@ -23,11 +23,12 @@ sound card. You need to load snd-synth-opl3 module. Usage ----- - loadsbi [-p client:port] [-l] [-v level] instfile drumfile + loadsbi [-p client:port] [-4] [-l] [-P path] [-v level] instfile drumfile -p, --port=client:port - An ALSA client and port number to use -4 --opl3 - Four operators (OPL3) file type -l, --list - List possible output ports + -P, --path=path - Specify the patch path -v, --verbose=level - Verbose level Because you may have more than one sound card and each sound diff --git a/seq/sbiload/sbiload.c b/seq/sbiload/sbiload.c index 0e55ccf..93e12bf 100644 --- a/seq/sbiload/sbiload.c +++ b/seq/sbiload/sbiload.c @@ -32,16 +32,6 @@ #include #include -/* - * Load a SBI FM instrument patch - * sbiload [-p client:port] [-4] [-l] [-v level] instfile drumfile - * - * -p client:port - An ALSA client and port number to load instrument to - * -4 - four operators file type - * -l - List possible output ports that could be used - * -v level - Verbose level - */ - typedef struct sbi_header { char key[4]; @@ -182,7 +172,7 @@ static void show_usage () { char **cpp; static char *msg[] = { - "Usage: sbiload [-p client:port] [-4] [-l] [-v level] instfile drumfile", + "Usage: sbiload [-p client:port] [-4] [-l] [-P path] [-v level] instfile drumfile", "", " -p client:port - A alsa client and port number to send midi to", " -4 - four operators file type (default = two ops)", @@ -455,7 +445,7 @@ load_file (int bank, char *filename) { fd = open (filename, O_RDONLY); else { char path[1024]; - snprintf(path, sizeof(path), "%s/%s", PATCHDIR, filename); + snprintf(path, sizeof(path), "%s/%s", patchdir, filename); fd = open (path, O_RDONLY); } @@ -590,11 +580,12 @@ finish_client () /* * Load a .SBI FM instrument patch - * sbiload [-p client:port] [-l] [-v level] instfile drumfile + * sbiload [-p client:port] [-l] [-P path] [-v level] instfile drumfile * * -p, --port=client:port - An ALSA client and port number to use * -4 --opl3 - four operators file type * -l, --list - List possible output ports that could be used + * -P, --path=path - Specify the patch path * -v, --verbose=level - Verbose level */ int