minimodem: --float-samples: short arg -F deprecated
This commit is contained in:
parent
bd08b9002c
commit
d273828f80
@ -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
|
Use ALSA as the audio output system instead of the default
|
||||||
PulseAudio (depending on build configuration options).
|
PulseAudio (depending on build configuration options).
|
||||||
.TP
|
.TP
|
||||||
.B \-F, \-\-float-samples
|
.B \-\-float-samples
|
||||||
Generate 32-bit floating-point format audio samples, instead of the
|
Generate 32-bit floating-point format audio samples, instead of the
|
||||||
default 16-bit signed integer format (applies to \-\-tx mode only;
|
default 16-bit signed integer format (applies to \-\-tx mode only;
|
||||||
\-\-rx mode always uses 32-bit floating-point).
|
\-\-rx mode always uses 32-bit floating-point).
|
||||||
|
@ -308,7 +308,7 @@ usage()
|
|||||||
" -R, --samplerate {rate}\n"
|
" -R, --samplerate {rate}\n"
|
||||||
" -V, --version\n"
|
" -V, --version\n"
|
||||||
" -A, --alsa\n"
|
" -A, --alsa\n"
|
||||||
" -F, --float-samples\n"
|
" --float-samples\n"
|
||||||
" --benchmarks\n"
|
" --benchmarks\n"
|
||||||
" {baudmode}\n"
|
" {baudmode}\n"
|
||||||
" 1200 Bell202 1200 bps --ascii\n"
|
" 1200 Bell202 1200 bps --ascii\n"
|
||||||
@ -360,6 +360,7 @@ main( int argc, char*argv[] )
|
|||||||
|
|
||||||
enum {
|
enum {
|
||||||
MINIMODEM_OPT_UNUSED=256, // placeholder
|
MINIMODEM_OPT_UNUSED=256, // placeholder
|
||||||
|
MINIMODEM_OPT_FLOAT_SAMPLES,
|
||||||
MINIMODEM_OPT_BENCHMARKS,
|
MINIMODEM_OPT_BENCHMARKS,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -384,11 +385,11 @@ main( int argc, char*argv[] )
|
|||||||
{ "quiet", 0, 0, 'q' },
|
{ "quiet", 0, 0, 'q' },
|
||||||
{ "alsa", 0, 0, 'A' },
|
{ "alsa", 0, 0, 'A' },
|
||||||
{ "samplerate", 1, 0, 'R' },
|
{ "samplerate", 1, 0, 'R' },
|
||||||
{ "float-samples", 0, 0, 'F' },
|
{ "float-samples", 0, 0, MINIMODEM_OPT_FLOAT_SAMPLES },
|
||||||
{ "benchmarks", 0, 0, MINIMODEM_OPT_BENCHMARKS },
|
{ "benchmarks", 0, 0, MINIMODEM_OPT_BENCHMARKS },
|
||||||
{ 0 }
|
{ 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);
|
long_options, &option_index);
|
||||||
if ( c == -1 )
|
if ( c == -1 )
|
||||||
break;
|
break;
|
||||||
@ -452,7 +453,7 @@ main( int argc, char*argv[] )
|
|||||||
exit(1);
|
exit(1);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case 'F':
|
case MINIMODEM_OPT_FLOAT_SAMPLES:
|
||||||
sample_format = SA_SAMPLE_FORMAT_FLOAT;
|
sample_format = SA_SAMPLE_FORMAT_FLOAT;
|
||||||
break;
|
break;
|
||||||
case MINIMODEM_OPT_BENCHMARKS:
|
case MINIMODEM_OPT_BENCHMARKS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user