2
ossmix - Open Sound System command-line mixer program.
5
ossmix [-d <dev#>] [-achqD] [control name] [value]
8
ossmix is a simple command-line mixer utility that is used to display the mixer
9
settings of physical and virtual audio devices. OSS version 4 has an extended
10
mixer API which supports some device specific features that may not available
11
using other mixer applications.
14
-D Display device information.
15
-a Dump mixer settings for all mixers (normal format).
16
-c Dump mixer settings for all mixers (command format).
17
-h Display usage information.
19
-v[1|2] Verbose mode. -v2 prints more detailed infoamation than -v1.
20
ctrl# value Change value of a mixer control.
21
<no arg> Display current/possible settings.
24
ossmix without any arguments displays the current settings of the
25
default mixer device (usually the motherboard sound chip). This
26
printout can also be used to find out the supported control names and
27
their possible values. Currently all controls accept an ON/OFF value, a
28
mono value (0 to 100) or a stereo value (left:right where both channel
29
volumes can be between 0 and 100). The value can also be expressed in a
30
relative form (e.g. +1 to add 1 to the previous volume). An ON/OFF control
31
can also receive a TOGGLE value. If a control has a name in quotes following
32
the normal output, than the name can be used instead of the control when
35
The following is a sample printout produced by ossmix:
37
Selected mixer 0/Creative AudioPCI
39
vol <both/leftvol>[:<rightvol>] (currently 50:50)
40
pcm <both/leftvol>[:<rightvol>] (currently 50:50)
41
speaker <monovol> (currently 21)
42
line <both/leftvol>[:<rightvol>] (currently 32:32)
43
line.rec ON|OFF (currently OFF)
44
mic <monovol> (currently 16)
45
mic.rec ON|OFF (currently ON)
46
cd <both/leftvol>[:<rightvol>] (currently 100:100)
47
cd.rec ON|OFF (currently OFF)
48
pcm2 <both/leftvol>[:<rightvol>] (currently 75:75)
49
line1 <both/leftvol>[:<rightvol>] (currently 32:32)
50
line1.rec ON|OFF (currently OFF)
51
line2 <monovol> (currently 32)
52
line2.rec ON|OFF (currently OFF)
53
line3 <monovol> (currently 0)
54
line3.rec ON|OFF (currently OFF)
55
mic.micboost ON|OFF (currently ON)
56
mic.micbias ON|OFF (currently ON)
57
mute.pcmmute ON|OFF (currently OFF)
58
mute.pcm2mute ON|OFF (currently OFF)
59
mute.micmute ON|OFF (currently OFF)
60
mute.cdmute ON|OFF (currently OFF)
61
mute.linemute ON|OFF (currently OFF)
62
mute.line1mute ON|OFF (currently OFF)
63
mute.line2mute ON|OFF (currently OFF)
64
mute.line3mute ON|OFF (currently OFF)
66
SELECTING MIXER DEVICE
67
It's possible to select the mixer device by using the -d<mixernumber>
68
command line argument. This argument (when used) should be the first one
69
on the command line. By default the mixer number 0 will be accessed.
70
To find the available mixer devices, type ossinfo -x and look
71
under the Mixers heading for available mixer devices.
73
CHANGING MIXER SETTINGS
74
Changing the values is done just like with the original "mixer" applet.
79
The above sets the pcm control (audio playback volume) so that the left
80
channel volume is 50 and the right channel volume is 60. With just
81
"ossmix pcm 50" the both channel volumes will be set to 50.
83
In addition to the old mixer there are now some (usually ON/OFF) settings.
84
These settings are device specific and don't work with all soundcards.
85
The easiest way to find them out is to start ossmix without command line
86
arguments (other than -d#).
88
Some control names contain a dot ("."). This dot is required when changing
89
the value. For example: "ossmix -d0 mic.micboost ON".
91
."USING OSSMIX WITH A MIDI CONTROLLED MIXER
92
."The ossmix program has capability to listen MIDI main volume controller
93
."messages from a MIDI port. You can assign a ossmix control to each MIDI
94
."channel. After receiving a channel main volume change message ossmix will then
95
."change the mixer level of the volume control assigned to the channel. In this
96
."mode ossmix will not exit (you need to kill it manually).
98
."This mode is very useful if you need to make several rapid mixer changes
101
."To use this mode you need to give the MIDI device file and a list of the
102
."volume sliders on command line. For example:
104
."ossmix -d1 -m/dev/midi00 vol mic pcm line gain.out1/2 gain.in3/4
106
."After that the MIDI channels will be assigned in the following way:
112
."Ch 4 = "gain.out1/2"
113
."Ch 5 = "gain.in3/4"
115
."Other MIDI channels (6 to 15) will be ignored.
117
."Only mono and stereo slider type controls can be assigned to MIDI channels.
118
."Both stereo channels will be set to the same volume (there is no balance
121
."After starting ossmix you should move the sliders on the external fader box
122
."so that ossmix can figure out their current settings.
124
."At this moment only MIDI fader boxes that send only main volume change messages
125
."are supported (any other MIDI data will make ossmix to behave incorrectly).
126
."For example the FM3 MIDI Mixer (AKA "FaderBaby") by JLCooper is compatible
133
Set the vol control volume to 50. If the pcm control is a stereo control,
134
than both channels will be set to 50.
137
Set the vol control so that the left channel volume is 50 and the right
138
channel volume is 60.
141
Raise vol volume by 2.
144
Raise the left channel volume by 2, and lower right channel volume by 2.
145
The "--" is needed on some systems so that the "-2" won't be mistaken for
151
ossmix micboost TOGGLE
155
Raise mplayer volume by 2. This would only work if mplayer is using the
162
ossdevlinks(1), ossxmix(1), savemixer(1)