mirror of https://github.com/ericonr/sndio.git
explain what "default" means in sndio.7
This commit is contained in:
parent
8748c853c2
commit
b5f32675fc
|
@ -61,13 +61,6 @@ later it will be passed as the
|
||||||
.Ar hdl
|
.Ar hdl
|
||||||
argument of most other functions.
|
argument of most other functions.
|
||||||
The
|
The
|
||||||
.Fn mio_open
|
|
||||||
function tries to connect to the
|
|
||||||
.Xr sndiod 1
|
|
||||||
MIDI thru box or to use the
|
|
||||||
.Xr midi 4
|
|
||||||
hardware port.
|
|
||||||
The
|
|
||||||
.Ar name
|
.Ar name
|
||||||
parameter gives the device string discussed in
|
parameter gives the device string discussed in
|
||||||
.Xr sndio 7 .
|
.Xr sndio 7 .
|
||||||
|
|
|
@ -95,14 +95,6 @@ later it will be passed as the
|
||||||
.Ar hdl
|
.Ar hdl
|
||||||
argument of most other functions.
|
argument of most other functions.
|
||||||
The
|
The
|
||||||
.Fn sio_open
|
|
||||||
function first tries to connect to the
|
|
||||||
.Xr sndiod 1
|
|
||||||
audio server.
|
|
||||||
If that fails, it then tries to use the
|
|
||||||
.Xr audio 4
|
|
||||||
hardware device.
|
|
||||||
The
|
|
||||||
.Ar name
|
.Ar name
|
||||||
parameter gives the device string discussed in
|
parameter gives the device string discussed in
|
||||||
.Xr sndio 7 .
|
.Xr sndio 7 .
|
||||||
|
|
|
@ -97,7 +97,7 @@ MIDI thru box created with
|
||||||
MIDI port exposed by
|
MIDI port exposed by
|
||||||
.Xr sndiod 1 .
|
.Xr sndiod 1 .
|
||||||
.It Pa default
|
.It Pa default
|
||||||
Any audio device or MIDI port.
|
Default audio device or MIDI port (see below).
|
||||||
.El
|
.El
|
||||||
.It Pa hostname
|
.It Pa hostname
|
||||||
The hostname or address where the remote
|
The hostname or address where the remote
|
||||||
|
@ -146,6 +146,40 @@ Sub-device registered with
|
||||||
First MIDI thru box created with
|
First MIDI thru box created with
|
||||||
.Xr sndiod 1 .
|
.Xr sndiod 1 .
|
||||||
.El
|
.El
|
||||||
|
.Sh DEFAULTS
|
||||||
|
If
|
||||||
|
.Pa default
|
||||||
|
is used as the audio device, the program will use the
|
||||||
|
one specified in the
|
||||||
|
.Ev AUDIODEVICE
|
||||||
|
environment variable.
|
||||||
|
If it is not set, the program first tries to connect to
|
||||||
|
.Pa snd/0 .
|
||||||
|
If that fails, it then tries to use
|
||||||
|
.Pa rsnd/0 .
|
||||||
|
This allows the
|
||||||
|
.Xr sndiod 1
|
||||||
|
audio server to be used by default and the bare hardware as fallback;
|
||||||
|
programs don't have to be reconfigured when
|
||||||
|
.Xr sndiod 1
|
||||||
|
is started or stopped.
|
||||||
|
.Pp
|
||||||
|
If
|
||||||
|
.Pa default
|
||||||
|
is used as the MIDI port, the program will use the
|
||||||
|
one specified in the
|
||||||
|
.Ev MIDIDEVICE
|
||||||
|
environment variable.
|
||||||
|
If it is not set, the program first tries to connect to
|
||||||
|
.Pa midithru/0 .
|
||||||
|
If that fails, it then tries to use
|
||||||
|
.Pa rmidi/0 .
|
||||||
|
As long as
|
||||||
|
.Xr sndiod 1
|
||||||
|
is running, this allows programs to exchange MIDI data on
|
||||||
|
machines with no MIDI hardware by default, e.g. a MIDI player
|
||||||
|
could use a software synthesizer with no manual configuration
|
||||||
|
required.
|
||||||
.Sh AUTHENTICATION
|
.Sh AUTHENTICATION
|
||||||
If a shared
|
If a shared
|
||||||
.Xr sndiod 1
|
.Xr sndiod 1
|
||||||
|
|
Loading…
Reference in New Issue