<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 01/04/2016 08:15, Ffanci Silvain wrote:<br>
    <blockquote cite="mid:1604010903140.8325@freeshell.de" type="cite">Ben
      Edwards, Apr 1 2016:
      <br>
      ...
      <br>
      <blockquote type="cite">I need to use a slave.
        <br>
      </blockquote>
      Yes, but I haven't seen it like that, if it works though...
      <br>
      <blockquote type="cite">
        <br>
        Is this correct?
        <br>
        <br>
        pcm_slave.sl3 {
        <br>
           pcm "hw:1,0"
        <br>
           format S16_LE
        <br>
           channels 2
        <br>
           rate /44100 /
        <br>
        }
        <br>
        pcm.complex_convert {
        <br>
           type plug
        <br>
           slave sl3
        <br>
        }
        <br>
      </blockquote>
      Don't put the slashes around your sample rate. I'd normally put
      all the sl3 code inside your complex_converter, where you said:
      <br>
      slave sl3
      <br>
      I would have written:
      <br>
      slave {
      <br>
          pcm "hw:1,0,0"
      <br>
          ...
      <br>
      }
      <br>
    </blockquote>
    <br>
    So made  ~/.asoundrc<br>
    <blockquote>pcm_slave.sl3 {
      <br>
         pcm "hw:1,0"
      <br>
         channels 2
      <br>
         rate 44100<br>
      }
      <br>
      <br>
      pcm.complex_convert {
      <br>
         type plug
      <br>
         format S16_LE
      <br>
         slave sl3
      <br>
      }
      <br>
    </blockquote>
    but got<br>
    <blockquote>pi@cuberadio:~ $ arecord -t wav -r 44100 -c 2 -f S16_LE
      -D complex_convert mon.wav<br>
      ALSA lib pcm_plug.c:1261:(_snd_pcm_plug_open) Unknown field format<br>
      arecord: main:722: audio open error: Invalid argument<br>
    </blockquote>
    ;(.<br>
    <br>
    | 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.
    <br>
    <blockquote cite="mid:1604010903140.8325@freeshell.de" type="cite">S16_LE
      = signed 16bit Little Endian, which is what you want. Take a look
      at the manpage for arecord:
      <br>
      man arecord
      <br>
      then search for s16_le:
      <br>
      /s16_le
      <br>
      you will come to a full list of accepted bit depth/sample formats
      of ALSA.
      <br>
      <blockquote type="cite">
        <br>
        Not against using jack but only if I have to.  It seems more
        complex and I am very new to al this.
        <br>
      </blockquote>
      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.
      <br>
    </blockquote>
    <br>
    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, <a class="moz-txt-link-freetext" href="http://cubecinema.com/">http://cubecinema.com/</a> (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.<br>
    <br>
    Regards,<br>
    Ben<br>
    <br>
    <blockquote cite="mid:1604010903140.8325@freeshell.de" type="cite">...
      <br>
      <br>
      Ta-ta
      <br>
      ----
      <br>
      Ffanci
      <br>
      * Homepage: <a class="moz-txt-link-freetext" href="https://freeshell.de/~silvain">https://freeshell.de/~silvain</a>
      <br>
      * Twitter:  <a class="moz-txt-link-freetext" href="http://twitter.com/ffanci_silvain">http://twitter.com/ffanci_silvain</a>
      <br>
      * GitHub:   <a class="moz-txt-link-freetext" href="https://github.com/fsilvain">https://github.com/fsilvain</a>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <font style="color:#20B2AA">
        <b>Ben Edwards, Video Editor/Colorist & Cameraman</b><br>
        w:www.funkytwig.com t. 01179 118 144 m.:07773 02 44 82<br>
        <a class="moz-txt-link-freetext" href="skype:funkytwig">skype:funkytwig</a> twitter:@funkytwig<br>
        PGP Public key available from pgp.mit.edu<br>
      </font>
      <p><font style="color:#20B2AA">
          <small>If you are a freelancer FreeAgent is a great system to
            do your accounts,<br>
            if you use <a class="moz-txt-link-freetext" href="http://www.freeagent.com/?referrer=42j4d743">http://www.freeagent.com/?referrer=42j4d743</a><br>
            (referral code is 42j4d743) you get 10% off each month.<small>
            </small></small></font></p>
    </div>
  </body>
</html>