diff --git a/src/minimodem.1.in b/src/minimodem.1.in index 512faee..109d8d1 100644 --- a/src/minimodem.1.in +++ b/src/minimodem.1.in @@ -78,7 +78,7 @@ Set the audio sample rate (default rate is 48000 Hz). Use ALSA as the audio output system instead of the default PulseAudio (depending on build configuration options). .TP -.B \-F, \-\-float-samples +.B \-\-float-samples Generate 32-bit floating-point format audio samples, instead of the default 16-bit signed integer format (applies to \-\-tx mode only; \-\-rx mode always uses 32-bit floating-point). diff --git a/src/minimodem.c b/src/minimodem.c index e3dfcde..267d711 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -308,7 +308,7 @@ usage() " -R, --samplerate {rate}\n" " -V, --version\n" " -A, --alsa\n" - " -F, --float-samples\n" + " --float-samples\n" " --benchmarks\n" " {baudmode}\n" " 1200 Bell202 1200 bps --ascii\n" @@ -360,6 +360,7 @@ main( int argc, char*argv[] ) enum { MINIMODEM_OPT_UNUSED=256, // placeholder + MINIMODEM_OPT_FLOAT_SAMPLES, MINIMODEM_OPT_BENCHMARKS, }; @@ -384,11 +385,11 @@ main( int argc, char*argv[] ) { "quiet", 0, 0, 'q' }, { "alsa", 0, 0, 'A' }, { "samplerate", 1, 0, 'R' }, - { "float-samples", 0, 0, 'F' }, + { "float-samples", 0, 0, MINIMODEM_OPT_FLOAT_SAMPLES }, { "benchmarks", 0, 0, MINIMODEM_OPT_BENCHMARKS }, { 0 } }; - c = getopt_long(argc, argv, "Vtrc:a85f:b:M:S:T:qAR:F", + c = getopt_long(argc, argv, "Vtrc:a85f:b:M:S:T:qAR:", long_options, &option_index); if ( c == -1 ) break; @@ -452,7 +453,7 @@ main( int argc, char*argv[] ) exit(1); #endif break; - case 'F': + case MINIMODEM_OPT_FLOAT_SAMPLES: sample_format = SA_SAMPLE_FORMAT_FLOAT; break; case MINIMODEM_OPT_BENCHMARKS: