clarification needed
hi,
i finally got rid of errors while executing the program.
for playback program, i am filling the buffer with junk data
and i am using the writei function. I am hearing some sound.
but, for capture, i am not getting any errors. if my exe is
"capture.out",
when i give ./capture.out, it doesn;t give anything. I know
that it will not give any sound here. but if i want to talk, and then capture the samples( using readi) , store it to the buffer and then call writei function .
But i know the method and logic behind it. First ,
i will call snd_pcm_capture_prepare -> snd_pcm_readi-> snd_pcm_playback_prepare->snd_pcm_writei.
what shold be the buffer size? channels=?, frames =? for full
duplex application?
am i correct? please help me.
thanks,
mahendra.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf