SNDIOCTL(1)

πŸ“¦
version 1.10.0 Β· 2 versions
  • 1.10.0 Β· alpine 3.24, arch rolling, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.8.1 Β· ubuntu jammy
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– SNDIOCTL(1) πŸ’–

okay bestie, welcome to sndioctl β€” it's the General Commands Manual entry for sndioctl(1), and it's basically the remote control for your audio device's knobs and switches. no cap.


✨ NAME ✨

sndioctl β€” manipulate audio device controls πŸŽ›οΈ


🌸 SYNOPSIS 🌸

sndioctl [-dimnqv] [-f device] [command ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

The sndioctl utility can display or manipulate controls of sndio(7) audio devices, like the output level. it's giving "i am the volume slider now." πŸ’…

The options are as follows:

  • -d β€” Dump the raw list of available controls and exit. Useful as a debugging tool. like, here's everything, laid bare, no filter 🫢
  • -f device β€” Use this sndio(7) audio device.
  • -i β€” Display characteristics of requested controls instead of their values. so not what it is, but who it is πŸ’–
  • -m β€” Monitor and display audio controls changes. she's watching πŸ‘€
  • -n β€” Suppress printing of the variable name.
  • -q β€” Suppress all printing when setting a variable. silent. mysterious. iconic.
  • -v β€” Enable verbose mode, a.k.a. multi-channel mode. By default controls affecting different channels of the same stream are disguised as a single mono control to hide details that are not essential. turn this on and the channels stop pretending to be one thing fr fr

If no commands are specified, all valid controls are displayed on stdout. Unless -d, -m, -n, or -i are used, displayed lines are valid commands. The set of available controls depends on the audio device. so like, your mileage varies by device, no drama πŸ’€

Commands use the following two formats to display and change controls respectively:

[group/]stream[channel].function
[group/]stream[channel].function=value

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:

output.level
output[0].level

If the channel number (including the brackets) is omitted, the command is applied to all channels. all of them. every single one. periodt πŸ‘‘

Values are numbers between 0 and 1. Two-state controls (switches) take either 0 or 1 as value, typically corresponding to the off and on states respectively.

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. yes, it's a little ✨math✨, you got this 🌈


πŸ”₯ EXAMPLES πŸ”₯

Increase the level control affecting all output channels by 10% of the maximum:

$ sndioctl output.level=+0.1

Mute all output channels:

$ sndioctl output.mute=1

Toggle the above mute control:

$ sndioctl output.mute=!

Allow audio recording and set all input channels to 50%:

# sysctl kern.audio.record=1
$ sndioctl input.mute=0 input.level=0.5

πŸ‘‘ SEE ALSO πŸ‘‘

sioctl_open(3)


and that's the whole vibe, bestie πŸŽ€ this page is from the Debian folks, dated $Mdocdate$, and it's the SNDIOCTL(1) page β€” go forth and adjust your levels, you absolute main character πŸ¦‹πŸ’œ