ossmix(1)
β¨ ossmix β the Open Sound System command-line mixer program, bestie edition β¨
okay so. hi. you're here because you want to talk to your sound card from the terminal, and ossmix is literally the way. it's a simple command-line mixer utility, and it's what you use to display the mixer settings of your physical and virtual audio devices. and here's the tea: OSS version 4 has an extended mixer API that supports some device-specific features which lowkey might not even be available in other mixer applications. so like, this one goes harder. periodt. π
π SYNOPSIS π
ossmix [-d <dev#>] [-achqD] [control name] [value]
that's it, that's the whole vibe. π
π DESCRIPTION π
ossmix is a simple command-line mixer utility, and its whole job is displaying the mixer settings of your physical and virtual audio devices. no cap.
and then, the glow-up: OSS version 4 has an extended mixer API that supports some device specific features that may not be available using other mixer applications. it's giving main character energy, fr fr. π¦
β¨ OPTIONS β¨
-Dβ Display device information. π-aβ Dump mixer settings for all mixers (normal format).-cβ Dump mixer settings for all mixers (command format).-hβ Display usage information.-qβ Quiet mode. π€«-v[1|2]β Verbose mode.-v2prints more detailed information than-v1.ctrl# valueβ Change value of a mixer control.<no arg>β Display current/possible settings.
π USAGE π
so if you run ossmix with no arguments at all, it displays the current settings of the default mixer device (usually the motherboard sound chip). and bestie, that printout is also how you find out the supported control names and their possible values. two birds, zero stress. π¦
right now, all controls accept one of these:
- an
ON/OFFvalue - a mono value (0 to 100)
- a stereo value (
left:rightwhere both channel volumes can be between 0 and 100)
and the value can also be expressed in a relative form β e.g. +1 to add 1 to the previous volume. β¨
an ON/OFF control can also receive a TOGGLE value. π
and if a control has a name in quotes following the normal output, then that name can be used instead of the control when setting a value. iykyk.
here's a sample printout produced by ossmix:
Selected mixer 0/Creative AudioPCI
Known controls are:
vol <both/leftvol>[:<rightvol>] (currently 50:50)
pcm <both/leftvol>[:<rightvol>] (currently 50:50)
speaker <monovol> (currently 21)
line <both/leftvol>[:<rightvol>] (currently 32:32)
line.rec ON|OFF (currently OFF)
mic <monovol> (currently 16)
mic.rec ON|OFF (currently ON)
cd <both/leftvol>[:<rightvol>] (currently 100:100)
cd.rec ON|OFF (currently OFF)
pcm2 <both/leftvol>[:<rightvol>] (currently 75:75)
line1 <both/leftvol>[:<rightvol>] (currently 32:32)
line1.rec ON|OFF (currently OFF)
line2 <monovol> (currently 32)
line2.rec ON|OFF (currently OFF)
line3 <monovol> (currently 0)
line3.rec ON|OFF (currently OFF)
mic.micboost ON|OFF (currently ON)
mic.micbias ON|OFF (currently ON)
mute.pcmmute ON|OFF (currently OFF)
mute.pcm2mute ON|OFF (currently OFF)
mute.micmute ON|OFF (currently OFF)
mute.cdmute ON|OFF (currently OFF)
mute.linemute ON|OFF (currently OFF)
mute.line1mute ON|OFF (currently OFF)
mute.line2mute ON|OFF (currently OFF)
mute.line3mute ON|OFF (currently OFF)
look at all those little darlings. π«Ά
πΈ SELECTING MIXER DEVICE πΈ
you can pick your mixer device with the -d<mixernumber> command line argument. and heads up: this argument (when used) should be the first one on the command line. β οΈ
by default the mixer number 0 will be accessed.
to find the available mixer devices, type ossinfo -x and look under the Mixers heading for available mixer devices. slay. π
π CHANGING MIXER SETTINGS π
changing the values is done just like with the original "mixer" applet. for example:
ossmix pcm 50:60
the above sets the pcm control (audio playback volume) so that the left channel volume is 50 and the right channel volume is 60. with just ossmix pcm 50 the both channel volumes will be set to 50. easy. π
in addition to the old mixer there are now some (usually ON/OFF) settings. these settings are device specific and don't work with all soundcards. the easiest way to find them out is to start ossmix without command line arguments (other than -d#).
and here's a little gotcha you need to know: some control names contain a dot ("."). this dot is required when changing the value. for example: ossmix -d0 mic.micboost ON. do not skip the dot, bestie, i'm begging. π
π₯ EXAMPLES π₯
ossmix vol 50β Set thevolcontrol volume to 50. If thepcmcontrol is a stereo control, than both channels will be set to 50.ossmix vol 50:60β Set thevolcontrol so that the left channel volume is 50 and the right channel volume is 60.ossmix vol +2β Raisevolvolume by 2.ossmix -- vol +2:-2β Raise the left channel volume by 2, and lower right channel volume by 2. The"--"is needed on some systems so that the"-2"won't be mistaken for a parameter.ossmix micboost ONβ SetmicboosttoON.ossmix micboost TOGGLEβ Togglemicboost.ossmix mplayer +2β Raisemplayervolume by 2. This would only work ifmplayeris using the virtual mixer.
π¦ FILES π¦
/usr/bin/ossmix
β SEE ALSO β
ossdevlinks(1)ossxmix(1)savemixer(1)
π AUTHOR π
4Front Technologies
okay that's the whole page, you're basically a mixer girlie now. this fine piece of documentation was brought to you by OSS User Commands, dated 11 February 2015, and honestly? iconic of it. go forth and adjust ur volumes, bestie ππβ¨
π¦ where this page comes from
- ubuntu noble: oss4-base 4.2-build2020-1ubuntu3
- ubuntu noble: oss4-base 4.2-build2020-1ubuntu3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms