Re: asound.conf

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

 



Thierry Bouchard wrote:
> 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
> }
> 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?

This works the other way round: The slave device (the hardware device)
is forced to use 32-bit samples, but the MicPlug device converts the
samples to whatever format is requested (that's what "plug" does).

If your application wants to use 32-bit samples, it should just request
this format.

> Also is there any good documentation about how the asound.conf file works?

Not really.  What do you want to do?


Regards,
Clemens

-- 
> CONFIDENTIALITY CAUTION

*** DISCLAIMER ***
This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public.  If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any disclaimers in those e-mails.
Additionally, disclaimers in those e-mails will incur legal processing
fees of $42 per line; you have agreed to this by reading this
disclaimer.
*** END OF DISCLAIMER ***

-------------------------------------------------------------------------
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