version 1.7, 2020/04/21 13:05:04 |
version 1.8, 2020/04/21 13:13:16 |
|
|
Examples of left-hand side terms: |
Examples of left-hand side terms: |
.Pp |
.Pp |
.Dl output.level |
.Dl output.level |
.Dl hw/spkr[6].mute |
.Dl output[0].level |
.Pp |
.Pp |
Values are numbers between 0 and 1. |
Values are numbers between 0 and 1. |
Two-state controls (switches) take either 0 or 1 as value, |
Two-state controls (switches) take either 0 or 1 as value, |
|
|
If |
If |
.Qq \&! |
.Qq \&! |
is used instead of a number, then the switch is toggled. |
is used instead of a number, then the switch is toggled. |
Examples: |
|
.Pp |
|
.Dl hw/spkr.level=0.85 |
|
.Dl hw/spkr.level=+0.1 |
|
.Dl hw/spkr.mute=0 |
|
.Dl hw/spkr.mute=! |
|
.Sh EXAMPLES |
.Sh EXAMPLES |
The following will set all |
The following will set all |
|
.Ar output |
|
channels |
.Ar level |
.Ar level |
parameters that control the |
control to zero: |
.Ar spkr |
|
stream to zero: |
|
.Pp |
.Pp |
.Dl $ sndioctl hw/spkr.level=0 |
.Dl $ sndioctl output.level=0 |
.Pp |
.Pp |
The following commands are equivalent: |
The following set all |
|
.Ar output |
|
channels |
|
.Ar mute |
|
control: |
.Pp |
.Pp |
.Dl $ sndioctl hw/record[0].source=mic0 hw/record[1].source=mic1 |
.Dl $ sndioctl output.mute=0 |
.Dl $ sndioctl hw/record.source=mic |
|
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr sioctl_open 3 |
.Xr sioctl_open 3 |