From b1240da806f6aa30f023bbb6c914b52b4d145453 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 28 Feb 2021 17:22:46 +0200 Subject: [PATCH] ggwave-to-file : minor fixes --- examples/ggwave-to-file/README.md | 5 ++++- examples/ggwave-to-file/main.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/ggwave-to-file/README.md b/examples/ggwave-to-file/README.md index 9309095..faf6d44 100644 --- a/examples/ggwave-to-file/README.md +++ b/examples/ggwave-to-file/README.md @@ -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 diff --git a/examples/ggwave-to-file/main.cpp b/examples/ggwave-to-file/main.cpp index fe64259..2cdfbaf 100644 --- a/examples/ggwave-to-file/main.cpp +++ b/examples/ggwave-to-file/main.cpp @@ -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");