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
Unknown Object (File)
Aug 18 2025, 10:35 AM
Unknown Object (File)
Aug 3 2025, 9:31 PM
Unknown Object (File)
Jul 11 2025, 8:10 AM
Unknown Object (File)
Jul 8 2025, 2:37 PM
Unknown Object (File)
Jul 6 2025, 8:04 PM
Unknown Object (File)
Jul 4 2025, 2:07 PM
Unknown Object (File)
Jul 3 2025, 6:06 AM
Unknown Object (File)
Jul 1 2025, 3:12 AM
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).