Page MenuHomeFreeBSD

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

Authored by christos on Fri, May 10, 4:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 8:31 PM
Unknown Object (File)
Fri, May 17, 7:22 PM
Unknown Object (File)
Sun, May 12, 4:59 PM
Unknown Object (File)
Sat, May 11, 9:16 PM
Unknown Object (File)
Sat, May 11, 9:15 PM
Unknown Object (File)
Sat, May 11, 7:34 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).