Page MenuHomeFreeBSD

sound examples: Add sndstat nvlist example
ClosedPublic

Authored by christos on Jul 13 2024, 7:22 PM.
Tags
None
Referenced Files
F103019414: D45969.diff
Tue, Nov 19, 9:54 PM
Unknown Object (File)
Mon, Nov 18, 4:06 AM
Unknown Object (File)
Wed, Nov 13, 6:26 PM
Unknown Object (File)
Sat, Nov 9, 2:54 AM
Unknown Object (File)
Mon, Oct 28, 12:27 PM
Unknown Object (File)
Oct 7 2024, 2:03 AM
Unknown Object (File)
Oct 4 2024, 7:46 AM
Unknown Object (File)
Oct 2 2024, 4:32 PM
Subscribers

Diff Detail

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

Event Timeline

This file should probably also be added to share/examples/Makefile?

This revision is now accepted and ready to land.Jul 17 2024, 12:12 AM

What does the example program actually do? It would be useful to have an explanation somewhere in the file.

What does the example program actually do? It would be useful to have an explanation somewhere in the file.

It showcases how the sndstat nvlist interface can be used to extract all the information currently available. The man page already include a basic example section, but I think it's nice to have this program as well which can be run immediately and show how every single field can be fetched.

What does the example program actually do? It would be useful to have an explanation somewhere in the file.

It showcases how the sndstat nvlist interface can be used to extract all the information currently available. The man page already include a basic example section, but I think it's nice to have this program as well which can be run immediately and show how every single field can be fetched.

Sure, I can figure that out, my point is really that this would be more to a casual reader with some comments and a link to documentation.

This revision was automatically updated to reflect the committed changes.