Lines Matching full:mixer
51 Mixer library (libmixer, -lmixer)
57 .Fn mixer_close "struct mixer *m"
59 .Fn mixer_get_dev "struct mixer *m" "int devno"
61 .Fn mixer_get_dev_byname "struct mixer *m" "name"
75 .Fn mixer_set_vol "struct mixer *m" "mix_volume_t vol"
77 .Fn mixer_set_mute "struct mixer *m" "int opt"
79 .Fn mixer_mod_recsrc "struct mixer *m" "int opt"
83 .Fn mixer_set_dunit "struct mixer *m" "int unit"
91 .Fn MIX_ISDEV "struct mixer *m" "int devno"
93 .Fn MIX_ISMUTE "struct mixer *m" "int devno"
95 .Fn MIX_ISREC "struct mixer *m" "int devno"
97 .Fn MIX_ISRECSRC "struct mixer *m" "int devno"
104 .Nm mixer
107 .Ss Mixer
108 A mixer is described by the following structure:
110 struct mixer {
113 oss_mixerinfo mi; /* mixer info */
115 char name[NAME_MAX]; /* mixer name (e.g /dev/mixer0) */
134 int f_default; /* default mixer flag */
141 A tail queue structure containing all supported mixer devices.
147 OSS information about the mixer.
158 Path to the mixer (e.g /dev/mixer0).
160 File descriptor returned when the mixer is opened in
164 Since each mixer device maps to a pcmX device,
170 This number is useful when checking if the mixer's audio card is the default
176 Bit mask containing all supported devices for the mixer.
199 Flag which tells whether the mixer's audio card is the default one.
201 .Ss Mixer device
202 Each mixer device stored in a mixer is described as follows:
205 struct mixer *parent_mixer; /* parent mixer */
225 Pointer to the mixer the device is attached to.
238 .Ar mixer
248 Number of user-defined mixer controls associated with the device.
250 A tail queue containing user-defined mixer controls.
252 .Ss User-defined mixer controls
253 Each mixer device can have user-defined controls.
282 .Xr mixer 8 ,
283 each mixer control's values can be modified.
290 .Ss Opening and closing the mixer
297 specifies the path to the mixer.
302 is the number of the mixer device.
307 is the mixer for
315 .Ar /dev/mixer ,
317 opens the default mixer (hw.snd.default_unit).
321 function frees resources and closes the mixer device.
323 mixer.
324 .Ss Manipulating the mixer
329 functions select a mixer device, either by its number or by its name
331 The mixer structure keeps a list of all the devices, but only one can be
338 function changes the volume of the selected mixer device.
384 Although this is not really a mixer feature, it is useful to have instead of \
391 function returns the operating mode of the audio device the mixer belongs to.
395 The audio device has a mixer.
404 function returns the maximum mixer unit number.
407 for applications that want to loop through all mixer devices (see the
413 function writes the path of the mixer device specified in the
420 will fetch the path of the default mixer, or between 0 and the maximum mixer
425 macro checks if a device is actually a valid device for a given mixer.
451 .Ss Defining and using mixer controls
511 struct mixer *m;
532 struct mixer *m;
535 if ((m = mixer_open(NULL)) == NULL) /* Open the default mixer. */
549 struct mixer *m;
566 .Ss Loop through all mixer devices in the system
568 struct mixer *m;
586 .Xr mixer 8