Page MenuHomeFreeBSD

mixer.3: Showcase example of how to loop through all mixers
AbandonedPublic

Authored by christos on May 10 2024, 4:48 PM.
Tags
None
Referenced Files
F166432335: D45154.id138366.diff
Thu, Aug 13, 1:27 PM
F166428689: D45154.diff
Thu, Aug 13, 1:01 PM
Unknown Object (File)
Tue, Aug 11, 11:06 PM
Unknown Object (File)
Tue, Aug 11, 4:15 PM
Unknown Object (File)
Tue, Aug 11, 4:14 PM
Unknown Object (File)
Tue, Aug 11, 12:46 PM
Unknown Object (File)
Tue, Aug 4, 9:57 AM
Unknown Object (File)
Mon, Aug 3, 3:33 PM
Subscribers

Details

Summary

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57657
Build 54545: arc lint + arc unit

Event Timeline

lib/libmixer/mixer.3
551

I'm not quite happy to see the hardcoded "/dev/mixer%d" string as an official example here - there should be a way to retrieve the path through the mixer(3) library.

Actually, one of the reasons client applications go through SNDCTL_MIXER_INFO and the likes is to get device paths, not having them hardcoded for FreeBSD OSS. I think mixer(3) should provide this.

lib/libmixer/mixer.3
551

I can implement a mixer_get_path(unit).