Lines Matching +full:valid +full:- +full:sources

1 .\"-
2 .\" Copyright (c) 2021-2022 Christos Margiolis <christos@FreeBSD.org>
51 Mixer library (libmixer, -lmixer)
109 .Bd -literal
129 int recsrc; /* recording sources */
139 .Bl -tag -width "f_default"
191 Bit mask containing all recording sources.
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"
351 .Bl -tag -width MIX_TOGGLEMUTE -offset indent
368 .Bl -tag -width MIX_REMOVERECSRC -offset indent
370 Add device to the recording sources.
372 Remove device from the recording sources.
376 Toggle device from the recording sources.
393 .Bl -tag -width "MIX_MODE_MIXER" -offset indent
418 can be either -1, in which case
425 macro checks if a device is actually a valid device for a given mixer.
427 stores only valid devices by default.
443 macro normalizes a value to 32-bit floating point number.
497 functions return 0 or positive values on success and -1 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);
547 .Ss Print all recording sources' names and volumes
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