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)
Tue, Nov 4, 7:56 PM
Unknown Object (File)
Tue, Nov 4, 2:58 PM
Unknown Object (File)
Tue, Nov 4, 12:40 PM
Unknown Object (File)
Tue, Nov 4, 10:10 AM
Unknown Object (File)
Tue, Nov 4, 4:57 AM
Unknown Object (File)
Sun, Nov 2, 12:15 AM
Unknown Object (File)
Sat, Nov 1, 1:04 AM
Unknown Object (File)
Tue, Oct 28, 11:55 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).