Re: [Alsa-user] Redirecting Mic Input in software (no arecord / aplay involved)

2008-03-19 Thread Clemens Ladisch
I wrote: However, an even better solution for your problem would be to enable the input monitoring function of your sound card. Okay, monitoring is now supported, with this patch: http://hg.alsa-project.org/alsa-kernel/rev/0fff88f7f05b To enable monitoring from a script, run amixer

Re: [Alsa-user] Redirecting Mic Input in software (no arecord / aplay involved)

2008-03-13 Thread Clemens Ladisch
Thierry Bouchard wrote: Your comment bring me another question though, why would enabling the input monitoring on my sound card have fixed my problem and would have been a better solution? What exactly is input monitoring? Input monitoring means that the recorded data is played back

[Alsa-user] Redirecting Mic Input in software (no arecord / aplay involved)

2008-03-12 Thread Thierry Bouchard
Hello, Im trying to capture the Microphone input and redirect it right away into speakers. The problem is that whenever I use snd_pcm_readi and snd_pcm_writei one after each other in my capture loop, the pipe becomes broken on the output side, i.e. every call to snd_pcm_writei fails after it

Re: [Alsa-user] Redirecting Mic Input in software (no arecord / aplay involved)

2008-03-12 Thread Clemens Ladisch
Thierry Bouchard wrote: Im trying to capture the Microphone input and redirect it right away into speakers. The problem is that whenever I use snd_pcm_readi and snd_pcm_writei one after each other in my capture loop, the pipe becomes broken on the output side, i.e. every call to snd_pcm_writei