LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Where is snd_pcm_writei() defined? (https://www.linuxquestions.org/questions/programming-9/where-is-snd_pcm_writei-defined-732590/)

dchou4u 06-12-2009 07:32 PM

Where is snd_pcm_writei() defined?
 
I am writing a small demo code that opens a audio device on my board and play a sound on the speaker.

I have the aplay.c as sample code. In it it calls snd_pcm_writei(), but I cannot find this being defined anywhere in the source tree.

I am running 2.6.19 on a ARM board.

Thanks

fantas 06-13-2009 07:37 AM

Look inside the sources of the ALSA library.

dchou4u 06-18-2009 08:43 AM

Can I not use the ALSA library and write directly to the /dev/snd/pcm... device to emit a sound from the speakers?

Any sample code will greatly help....

Thanks


All times are GMT -5. The time now is 10:52 AM.