Question

I have an audio driver present in linux kernel that i have. Using alsa utilities like aplay, set and get i want to write a c application to test driver's functionalities like playback, set volume and get volume. I have a confusion that how to use aplay and other alsa commands in a c code. I am doing it for the very first time. Can anybody help me with the way to do achieve this.

Thanks in advance.

Était-ce utile?

La solution

Please see the answer to this question:

Set ALSA master volume from C code

And also read the alsa/mixer lib manpage.

Other references: http://www.alsa-project.org/alsa-doc/alsa-lib/mixer_8h.html

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top