Page MenuHomeFreeBSD

sound examples: Add sndstat nvlist example
ClosedPublic

Authored by christos on Jul 13 2024, 7:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 30, 3:51 PM
Unknown Object (File)
Mon, Sep 30, 10:14 AM
Unknown Object (File)
Tue, Sep 24, 5:42 AM
Unknown Object (File)
Sat, Sep 21, 3:23 PM
Unknown Object (File)
Thu, Sep 19, 9:10 PM
Unknown Object (File)
Thu, Sep 19, 4:34 PM
Unknown Object (File)
Wed, Sep 18, 9:11 PM
Unknown Object (File)
Wed, Sep 18, 10:00 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.