Lines Matching +full:user +full:- +full:selected
1 .\"-
2 .\" Copyright (c) 2021-2022 Christos Margiolis <christos@FreeBSD.org>
51 Mixer library (libmixer, -lmixer)
109 .Bd -literal
112 struct mix_dev *dev; /* selected device */
139 .Bl -tag -width "f_default"
143 A pointer to the currently selected device.
203 .Bd -literal
223 .Bl -tag -width "parent_mixer"
229 .Bd -ragged
241 Left and right-ear volumes.
242 Although the OSS API stores volumes in integers from 0-100, \
243 we normalize them to 32-bit floating point numbers.
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.
255 .Bd -literal
267 .Bl -tag -width "parent_dev"
338 function changes the volume of the selected mixer device.
347 function modifies the mute of a selected device.
351 .Bl -tag -width MIX_TOGGLEMUTE -offset indent
363 The selected device has to be a recording device, otherwise the function will
368 .Bl -tag -width MIX_REMOVERECSRC -offset indent
393 .Bl -tag -width "MIX_MODE_MIXER" -offset indent
418 can be either -1, in which case
443 macro normalizes a value to 32-bit floating point number.
497 functions return 0 or positive values on success and -1 on failure.
503 functions return the selected device on success and NULL on failure.
510 .Bd -literal
520 if ((m->dev = mixer_get_dev_byname(m, dev_name)) < 0)
531 .Bd -literal
537 TAILQ_FOREACH(dp, &m->devs, devs) {
538 m->dev = dp; /* Select device. */
539 if (M_ISMUTE(m, dp->devno))
542 warn("cannot mute device: %s", dp->name);
548 .Bd -literal
558 TAILQ_FOREACH(dp, &m->devs, devs) {
559 if (M_ISRECSRC(m, dp->devno))
561 dp->name, dp->vol.left, dp->vol.right);
567 .Bd -literal