LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2009, 07:32 PM   #1
dchou4u
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 12

Rep: Reputation: 0
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
 
Old 06-13-2009, 07:37 AM   #2
fantas
Member
 
Registered: Jun 2007
Location: Bavaria
Distribution: slackware, xubuntu
Posts: 143

Rep: Reputation: 22
Look inside the sources of the ALSA library.
 
Old 06-18-2009, 08:43 AM   #3
dchou4u
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cfmakeraw not defined sharathkv Programming 1 12-07-2006 10:00 PM
where defined(__i386) is being defined?? syseeker Programming 1 06-27-2006 06:24 AM
Doom 3 demo: snd_pcm_writei failed: Broken pipe nikolaj Linux - Games 0 04-14-2005 12:00 PM
When and how is $HOME defined? bikergirl Linux - General 2 08-22-2003 09:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration