Dear all, after some further research into the matter, it seems I have to do some asynchronous capture/playback with ALSA. I have searched for examples and found this site: where two example programs are included. microphone.c and speaker.c which use almost all available input/output modes in ALSA. The interesting thing is that you can run both programs concatenated since they write and read to the standard output and create a simple audio loop-back. I have tested different configurations and the configuration I want works with direct and asynchronous read/write with mmap and read/write with poll. Now I have taken the bits and pieces of those to programs and I have tried to create a single program that will read and write with different buffer sizes. I can't seem to be able to "reroute" the write from the standard output [these programs use write() and read()] to a buffer, or the read from the standard input to a buffer. Any ideas? Comments? I thank everyone for their time, Elias On 16 Jan 2012, at 12:53, Elias Kokkinis wrote:
|
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user