| 1 | From: Didier Raboud <[email protected]> |
| 2 | Date: Sat, 9 May 2020 19:45:08 +0200 |
| 3 | Subject: Add whitespace between examples for better help2man result |
| 4 | |
| 5 | --- |
| 6 | openaptxdec.c | 3 +++ |
| 7 | openaptxenc.c | 3 +++ |
| 8 | 2 files changed, 6 insertions(+) |
| 9 | |
| 10 | diff --git a/openaptxdec.c b/openaptxdec.c |
| 11 | index add2fab..5fdabaf 100644 |
| 12 | --- a/openaptxdec.c |
| 13 | +++ b/openaptxdec.c |
| 14 | @@ -70,8 +70,11 @@ int main(int argc, char *argv[]) |
| 15 | fprintf(stderr, " --hd Decode from aptX HD\n"); |
| 16 | fprintf(stderr, "\n"); |
| 17 | fprintf(stderr, "Examples:\n"); |
| 18 | + fprintf(stderr, "\n"); |
| 19 | fprintf(stderr, " %s < sample.aptx > sample.s24le\n", argv[0]); |
| 20 | + fprintf(stderr, "\n"); |
| 21 | fprintf(stderr, " %s --hd < sample.aptxhd > sample.s24le\n", argv[0]); |
| 22 | + fprintf(stderr, "\n"); |
| 23 | fprintf(stderr, " %s < sample.aptx | play -t raw -r 44.1k -L -e s -b 24 -c 2 -\n", argv[0]); |
| 24 | return 1; |
| 25 | } else if (strcmp(argv[i], "--hd") == 0) { |
| 26 | diff --git a/openaptxenc.c b/openaptxenc.c |
| 27 | index 08c58ef..4c6048f 100644 |
| 28 | --- a/openaptxenc.c |
| 29 | +++ b/openaptxenc.c |
| 30 | @@ -62,8 +62,11 @@ int main(int argc, char *argv[]) |
| 31 | fprintf(stderr, " --hd Encode to aptX HD\n"); |
| 32 | fprintf(stderr, "\n"); |
| 33 | fprintf(stderr, "Examples:\n"); |
| 34 | + fprintf(stderr, "\n"); |
| 35 | fprintf(stderr, " %s < sample.s24le > sample.aptx\n", argv[0]); |
| 36 | + fprintf(stderr, "\n"); |
| 37 | fprintf(stderr, " %s --hd < sample.s24le > sample.aptxhd\n", argv[0]); |
| 38 | + fprintf(stderr, "\n"); |
| 39 | fprintf(stderr, " sox sample.wav -t raw -r 44.1k -L -e s -b 24 -c 2 - | %s > sample.aptx\n", argv[0]); |
| 40 | return 1; |
| 41 | } else if (strcmp(argv[i], "--hd") == 0) { |