|SNDIOCTL(1)||General Commands Manual||SNDIOCTL(1)|
manipulate audio device controls
sndioctl utility can display or
manipulate controls of sndio(7) audio
devices, like the output level. The options are as follows:
If no commands are specified all valid controls are
-i are used,
displayed lines are valid commands. The set of available controls depends on
the audio device.
Commands use the following two formats to display and change controls respectively:
On the left-hand side are specified the control group (if any), the affected stream name, and the optional channel number. Examples of left-hand side terms:
If the channel number (including the brackets) is omitted, the command is applied to all channels.
If a decimal is prefixed by the plus (minus) sign then the given value is added to (subtracted from) the current value of the control. If "!" is used instead of a number, then the switch is toggled.
level control affecting all
output channels by 10% of the maximum:
$ sndioctl output.level=+0.1
$ sndioctl output.mute=1
Toggle the above
$ sndioctl output.mute=!
Allow audio recording and set all
channels to 50%:
# sysctl kern.audio.record=1 $ sndioctl input.mute=0 input.level=0.5
|May 27, 2020||OpenBSD-current|