audio(1): add new -s SECONDS option

This commit is contained in:
Sigrid 2020-08-11 17:27:11 +02:00
parent 4ba367d435
commit 5fcf2040b4

View file

@ -8,8 +8,16 @@ mp3dec, mp3enc, oggdec, oggenc, flacdec, sundec, wavdec, pcmconv, mixfs \- decod
] ]
.br .br
.B audio/oggdec .B audio/oggdec
[
.B -s
.I seconds
]
.br .br
.B audio/flacdec .B audio/flacdec
[
.B -s
.I seconds
]
.br .br
.B audio/wavdec .B audio/wavdec
.br .br
@ -82,6 +90,12 @@ and
are like are like
.I mp3dec .I mp3dec
but decode OGG Vorbis, FLAC lossless audio, Sun audio and RIFF wave. but decode OGG Vorbis, FLAC lossless audio, Sun audio and RIFF wave.
.SS Decoding options
.TF "\fB-s seconds \fP"
.TP
.BI -s " seconds"
seek to a specific position in seconds before decoding.
.SS
.PP .PP
The encoders read PCM on standard input and produce compressed audio The encoders read PCM on standard input and produce compressed audio
on standard output. on standard output.
@ -106,7 +120,7 @@ accepts raw PCM in the same byte order as
t t
.I mp3enc -r .I mp3enc -r
expects big-endian. expects big-endian.
.SS Options .SS Encoding options
.TF "\fB-b \fP" .TF "\fB-b \fP"
.TP .TP
.B -b .B -b