asound.conf

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

 



Hi, I started to play with ALSA 2 days ago and Im trying to figure out how 
ALSA works and how to add PCM devices in the configuration file.

I wrote a simple plugin for my microphone which is supposed to convert the 
data into a 32 bps format. Here is how it looks like : 

pcm.jcb-in-1 {
        type hw
        card 0
        device 2
}
ctl.jcb-in-1 {
        type hw
        card 0
}
pcm.MicPlug
{
    type plug
    slave
    {
        pcm jcb-in-1
        format S32_LE
    }
}

So now if Im opening the PCM device named MicPlug and start reading on it, Im 
expecting (which may totally be wrong) that the data I read will be in a 
32bps format, which is never happening. In fact, the data I read is exactly 
in the format that I set using  "snd_pcm_hw_params_set_format". Is the 
conversion supposed to happen or am I expecting something that is totally 
wrong?

Also is there any good documentation about how the asound.conf file works? I 
found some stuff on the web but it rather sucks.

Thank you!

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