[LAU] asoundrc

Ben Edwards ben at funkytwig.com
Fri Apr 1 09:27:03 UTC 2016

On 01/04/2016 08:15, Ffanci Silvain wrote:
> Ben Edwards, Apr 1 2016:
> ...
>> I need to use a slave.
> Yes, but I haven't seen it like that, if it works though...
>> Is this correct?
>> pcm_slave.sl3 {
>>    pcm "hw:1,0"
>>    format S16_LE
>>    channels 2
>>    rate /44100 /
>> }
>> pcm.complex_convert {
>>    type plug
>>    slave sl3
>> }
> Don't put the slashes around your sample rate. I'd normally put all 
> the sl3 code inside your complex_converter, where you said:
> slave sl3
> I would have written:
> slave {
>     pcm "hw:1,0,0"
>     ...
> }

So made  ~/.asoundrc

    pcm_slave.sl3 {
        pcm "hw:1,0"
        channels 2
        rate 44100

    pcm.complex_convert {
        type plug
        format S16_LE
        slave sl3

but got

    pi at cuberadio:~ $ arecord -t wav -r 44100 -c 2 -f S16_LE -D
    complex_convert mon.wav
    ALSA lib pcm_plug.c:1261:(_snd_pcm_plug_open) Unknown field format
    arecord: main:722: audio open error: Invalid argument


| Not sure exactly what S16_LE.  Cant find a list of the formats. Or is 
this the format of the card, not the format I want.
> S16_LE = signed 16bit Little Endian, which is what you want. Take a 
> look at the manpage for arecord:
> man arecord
> then search for s16_le:
> /s16_le
> you will come to a full list of accepted bit depth/sample formats of 
>> Not against using jack but only if I have to.  It seems more complex 
>> and I am very new to al this.
> If you have to work with the asoundrc, JACK will be easier on every 
> modern system, that I know off. It will take care of different bit 
> depth automatically. Maybe give it a try at some point. If you like 
> graphical user interfaces qjackctl is a good companion to look at 
> connections and/or make them yourself.

Its headless but I could ssh -X I guess.  Ime just trying to get it to 
work/take the path or least resistance.  Don't mind taking a couple of 
hours working this out but I do find the documentation for Linux stuff 
makes my head spin, and I worked in It for over 15 years.   Ime 
basically now a creative, I do video production mainly.  figured if I 
could do it without installing extra framework that would be good.  I 
help at a local volunteer run venue/performance space, 
http://cubecinema.com/ (Server offline currently as it is hosted onside 
and power is down due to electrics needing total overall).  This is what 
i am trying to sort out this stuff for and trying to find time to do 
it.  OK, ime a bit lazy, my boss when I did IT said this was a good 
thing, it means you try to find the easiest way of doing stuff;).  I 
wish I had a day or too to work fully through docs but its difficult to 
find the time.


> ...
> Ta-ta
> ----
> Ffanci
> * Homepage: https://freeshell.de/~silvain
> * Twitter:  http://twitter.com/ffanci_silvain
> * GitHub:   https://github.com/fsilvain

*Ben Edwards, Video Editor/Colorist & Cameraman*
w:www.funkytwig.com t. 01179 118 144 m.:07773 02 44 82
skype:funkytwig twitter:@funkytwig
PGP Public key available from pgp.mit.edu

If you are a freelancer FreeAgent is a great system to do your accounts,
if you use http://www.freeagent.com/?referrer=42j4d743
(referral code is 42j4d743) you get 10% off each month.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20160401/2877f0b2/attachment-0001.html>

More information about the Linux-audio-user mailing list