version 1.16, 2022/03/07 08:58:33 |
version 1.17, 2024/05/03 16:47:15 |
|
|
and the default sub-device exposed by |
and the default sub-device exposed by |
.Nm |
.Nm |
is |
is |
.Pa snd/0 . |
.Pa snd/default . |
.Pp |
.Pp |
If |
If |
.Nm |
.Nm |
|
|
.Pp |
.Pp |
For instance, the following command will create two devices: |
For instance, the following command will create two devices: |
the default |
the default |
.Va snd/0 |
.Va snd/default |
and a MIDI-controlled |
and a MIDI-controlled |
.Va snd/0.mmc : |
.Va snd/mmc : |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ sndiod -r 48000 -z 400 -s default -t slave -s mmc |
$ sndiod -r 48000 -z 400 -s default -t slave -s mmc |
.Ed |
.Ed |
.Pp |
.Pp |
Streams connected to |
Streams connected to |
.Va snd/0 |
.Va snd/default |
behave normally, while streams connected to |
behave normally, while streams connected to |
.Va snd/0.mmc |
.Va snd/mmc |
wait for the MMC start signal and start synchronously. |
wait for the MMC start signal and start synchronously. |
Regardless of which device a stream is connected to, |
Regardless of which device a stream is connected to, |
its playback volume knob is exposed. |
its playback volume knob is exposed. |
|
|
Start server using default parameters, creating an |
Start server using default parameters, creating an |
additional sub-device for output to channels 2:3 only (rear speakers |
additional sub-device for output to channels 2:3 only (rear speakers |
on most cards), exposing the |
on most cards), exposing the |
.Pa snd/0 |
.Pa snd/default |
and |
and |
.Pa snd/0.rear |
.Pa snd/rear |
devices: |
devices: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ sndiod -s default -c 2:3 -s rear |
$ sndiod -s default -c 2:3 -s rear |
|
|
.Pp |
.Pp |
Start server creating the default sub-device with low volume and |
Start server creating the default sub-device with low volume and |
an additional sub-device for high volume output, exposing the |
an additional sub-device for high volume output, exposing the |
.Pa snd/0 |
.Pa snd/default |
and |
and |
.Pa snd/0.max |
.Pa snd/max |
devices: |
devices: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ sndiod -v 65 -s default -v 127 -s max |
$ sndiod -v 65 -s default -v 127 -s max |