Redirecting Mic Input in software (no arecord / aplay involved)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 succeeded for like 2 passes. 

What is weird is that if I use only read or write calls in my capture loop, 
there is no problem at all. 

The input device I open is configured like this in the asound.conf file

pcm.jcb-in-1 {
        type hw
        card 0
        device 2
}

And this is the output device

pcm.CMI8788
{
   type hw
   card 0
   device 0 
}

Should I do something special in between the calls to read and write? Should I 
initialize the devices in any special way to make this possible?

Thx for your help!

CONFIDENTIALITY CAUTION 
This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.
DOCUMENT CONFIDENTIEL 
Le présent courriel et tout fichier joint à celui-ci peuvent contenir des renseignements confidentiels ou privilégiés. Si cet envoi ne s'adresse pas à vous ou si vous l'avez reçu par erreur, vous devez l'effacer. Vous ne pouvez conserver, distribuer, communiquer ou utiliser les renseignements qu'il contient. Nous vous prions de nous signaler l'erreur par courriel. Merci de votre collaboration.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux