ggwave-to-file : minor fixes

This commit is contained in:
Georgi Gerganov
2021-02-28 17:22:46 +02:00
parent 9ffe6f43f6
commit b1240da806
2 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ Output a generated waveform to an uncompressed WAV file.
Usage: ./bin/ggwave-to-file [-vN] [-sN] [-pN]
-vN - output volume, N in (0, 100], (default: 50)
-sN - output sample rate, N in [6000, 96000], (default: 48000)
-pN - select the transmission protocol (default: 1)
-pN - select the transmission protocol id (default: 1)
Available protocols:
0 - Normal
@@ -15,6 +15,9 @@ Usage: ./bin/ggwave-to-file [-vN] [-sN] [-pN]
3 - [U] Normal
4 - [U] Fast
5 - [U] Fastest
6 - [DT] Normal
7 - [DT] Fast
8 - [DT] Fastest
```
### Examples

View File

@@ -12,7 +12,7 @@
int main(int argc, char** argv) {
fprintf(stderr, "Usage: %s [-vN] [-sN] [-pN]\n", argv[0]);
fprintf(stderr, " -vN - output volume, N in (0, 100], (default: 50)\n");
fprintf(stderr, " -sN - output sample rate, N in [1024, %d], (default: %d)\n", (int) GGWave::kBaseSampleRate, (int) GGWave::kBaseSampleRate);
fprintf(stderr, " -sN - output sample rate, N in [%d, %d], (default: %d)\n", (int) GGWave::kSampleRateMin, (int) GGWave::kSampleRateMax, (int) GGWave::kBaseSampleRate);
fprintf(stderr, " -pN - select the transmission protocol id (default: 1)\n");
fprintf(stderr, "\n");
fprintf(stderr, " Available protocols:\n");