mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
Remove section about server capability which was removed
long time ago. Use .Cm instead of .Va for argument parameters. From Jan Stary <hans at stare.cz>, thanks!
This commit is contained in:
parent
002a501b9f
commit
f7d028191a
@ -60,8 +60,8 @@ join stereo or split mono.
|
|||||||
.It
|
.It
|
||||||
Control the per-file playback volume.
|
Control the per-file playback volume.
|
||||||
.It
|
.It
|
||||||
Monitor the sound being played, allowing to playback mix
|
Monitor the sound being played, allowing the playback mix
|
||||||
to be record.
|
to be recorded.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Finally,
|
Finally,
|
||||||
@ -75,17 +75,6 @@ Volume control.
|
|||||||
Start, stop and relocate playback and recording.
|
Start, stop and relocate playback and recording.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
For historic reasons
|
|
||||||
.Nm
|
|
||||||
has the same audio server capability as
|
|
||||||
.Xr sndiod 1 ,
|
|
||||||
enabled when no files to play or record are provided.
|
|
||||||
Both operate the same way, except that the former processes audio data stored
|
|
||||||
in files, while the latter processes audio data provided or consumed by
|
|
||||||
programs.
|
|
||||||
Hence it has the same server-centric options described in
|
|
||||||
.Xr sndiod 1 .
|
|
||||||
.Pp
|
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Xo
|
.It Xo
|
||||||
@ -94,7 +83,9 @@ The options are as follows:
|
|||||||
.Xc
|
.Xc
|
||||||
The range of stream channel numbers for recording and playback directions,
|
The range of stream channel numbers for recording and playback directions,
|
||||||
respectively.
|
respectively.
|
||||||
The default is 0:1, i.e. stereo.
|
The default is
|
||||||
|
.Cm 0:1 ,
|
||||||
|
i.e. stereo.
|
||||||
.It Fl d
|
.It Fl d
|
||||||
Increase log verbosity.
|
Increase log verbosity.
|
||||||
.It Fl e Ar enc
|
.It Fl e Ar enc
|
||||||
@ -114,7 +105,8 @@ Device mode and parameters are determined from streams
|
|||||||
attached to it.
|
attached to it.
|
||||||
.It Fl h Ar fmt
|
.It Fl h Ar fmt
|
||||||
File format of the playback or record stream (see below).
|
File format of the playback or record stream (see below).
|
||||||
The default is auto.
|
The default is
|
||||||
|
.Cm auto .
|
||||||
.It Fl i Ar file
|
.It Fl i Ar file
|
||||||
Add this file to the list of streams to play.
|
Add this file to the list of streams to play.
|
||||||
If the option argument is
|
If the option argument is
|
||||||
@ -124,17 +116,17 @@ then standard input will be used.
|
|||||||
Control whether stream channels are joined or expanded if
|
Control whether stream channels are joined or expanded if
|
||||||
the stream number of channels is not equal to the device number of channels.
|
the stream number of channels is not equal to the device number of channels.
|
||||||
If the flag is
|
If the flag is
|
||||||
.Va off
|
.Cm off
|
||||||
then stream channels are routed to the corresponding
|
then stream channels are routed to the corresponding
|
||||||
device channel, possibly discarding channels not present in the device.
|
device channel, possibly discarding channels not present in the device.
|
||||||
If the flag is
|
If the flag is
|
||||||
.Va on ,
|
.Cm on ,
|
||||||
then a single stream channel may be sent on multiple device channels,
|
then a single stream channel may be sent on multiple device channels,
|
||||||
or multiple stream channels may be sent to a single device channel.
|
or multiple stream channels may be sent to a single device channel.
|
||||||
For instance, this feature could be used to request mono streams to
|
For instance, this feature could be used to request mono streams to
|
||||||
be sent on multiple outputs or to record a stereo input into a mono stream.
|
be sent on multiple outputs or to record a stereo input into a mono stream.
|
||||||
The default is
|
The default is
|
||||||
.Ar on .
|
.Cm on .
|
||||||
.It Fl M
|
.It Fl M
|
||||||
Create a MIDI thru box
|
Create a MIDI thru box
|
||||||
.Pq i.e. MIDI-only pseudo device .
|
.Pq i.e. MIDI-only pseudo device .
|
||||||
@ -169,21 +161,22 @@ Control (MMC) slave mode
|
|||||||
.Pq Fl t .
|
.Pq Fl t .
|
||||||
.It Fl r Ar rate
|
.It Fl r Ar rate
|
||||||
Sample rate in Hertz of the stream.
|
Sample rate in Hertz of the stream.
|
||||||
The default is 48000.
|
The default is
|
||||||
|
.Cm 48000 .
|
||||||
.It Fl t Ar mode
|
.It Fl t Ar mode
|
||||||
Select the way streams are controlled by MIDI Machine Control (MMC)
|
Select the way streams are controlled by MIDI Machine Control (MMC)
|
||||||
messages.
|
messages.
|
||||||
If the mode is
|
If the mode is
|
||||||
.Va off
|
.Cm off
|
||||||
(the default), then streams are not affected by MMC messages.
|
(the default), then streams are not affected by MMC messages.
|
||||||
If the mode is
|
If the mode is
|
||||||
.Va slave ,
|
.Cm slave ,
|
||||||
then streams are started synchronously by MMC start messages.
|
then streams are started synchronously by MMC start messages.
|
||||||
.It Fl v Ar volume
|
.It Fl v Ar volume
|
||||||
Software volume attenuation of the playback stream.
|
Software volume attenuation of the playback stream.
|
||||||
The value must be between 1 and 127,
|
The value must be between 1 and 127,
|
||||||
corresponding to \-42dB and \-0dB attenuation in 1/3dB steps.
|
corresponding to \-42dB and \-0dB attenuation in 1/3dB steps.
|
||||||
The default is 127 i.e. no attenuation.
|
The default is 127, i.e. no attenuation.
|
||||||
.It Fl w Ar flag
|
.It Fl w Ar flag
|
||||||
Control
|
Control
|
||||||
.Nm
|
.Nm
|
||||||
@ -202,32 +195,31 @@ Using
|
|||||||
makes sense when all streams are recorded or produced with properly lowered
|
makes sense when all streams are recorded or produced with properly lowered
|
||||||
volumes.
|
volumes.
|
||||||
The default is
|
The default is
|
||||||
.Va on .
|
.Cm on .
|
||||||
.It Fl x Ar policy
|
.It Fl x Ar policy
|
||||||
Action when the output stream cannot accept
|
Action when the output stream cannot accept
|
||||||
recorded data fast enough or the input stream
|
recorded data fast enough or the input stream
|
||||||
cannot provide data to play fast enough.
|
cannot provide data to play fast enough.
|
||||||
If the policy
|
If the policy is
|
||||||
is
|
.Cm ignore
|
||||||
.Dq ignore
|
|
||||||
(the default) then samples that cannot be written are discarded
|
(the default) then samples that cannot be written are discarded
|
||||||
and samples that cannot be read are replaced by silence.
|
and samples that cannot be read are replaced by silence.
|
||||||
If the policy is
|
If the policy is
|
||||||
.Dq sync
|
.Cm sync
|
||||||
then recorded samples are discarded,
|
then recorded samples are discarded,
|
||||||
but the same amount of silence will be written
|
but the same amount of silence will be written
|
||||||
once the stream is unblocked, in order to reach the right position in time.
|
once the stream is unblocked, in order to reach the right position in time.
|
||||||
Similarly silence is played, but the same amount of samples will be discarded
|
Similarly silence is played, but the same amount of samples will be discarded
|
||||||
once the stream is unblocked.
|
once the stream is unblocked.
|
||||||
If the policy is
|
If the policy is
|
||||||
.Dq error
|
.Cm error
|
||||||
then the stream is closed permanently.
|
then the stream is closed permanently.
|
||||||
.Pp
|
.Pp
|
||||||
If a stream is created with the
|
If a stream is created with the
|
||||||
.Fl t
|
.Fl t
|
||||||
option,
|
option,
|
||||||
the
|
the
|
||||||
.Dq ignore
|
.Cm ignore
|
||||||
action is disabled for any stream connected to it
|
action is disabled for any stream connected to it
|
||||||
to ensure proper synchronization.
|
to ensure proper synchronization.
|
||||||
.El
|
.El
|
||||||
|
Loading…
Reference in New Issue
Block a user