<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Jeff,<br>
    <br>
    Thanks a lot for your reply.<br>
    <br>
    My problems occur while using a USB headset device.<br>
    So I can imagine, that with the help of your asound.conf file as a
    template, I should be able to configure 2 alsa loopback devices for
    exclusiv use in Blink.<br>
    <br>
    As a temporary workaround for the moment, I disabled the USB audio
    via pavucontrol configuration altogether, so it is only seen and
    selected by Blink and doesn't pop up in PA at all while accepting or
    doing phone calls.<br>
    <br>
    Regards,<br>
    Michael<br>
    <blockquote type="cite">
      <pre class="moz-quote-pre" wrap="">Date: Tue, 7 May 2019 11:07:17 -0400
From: Jeff Pyle <a class="moz-txt-link-rfc2396E" href="mailto:jeff@ugnd.org"><jeff@ugnd.org></a>
To: Blink Support Forum <a class="moz-txt-link-rfc2396E" href="mailto:blink@lists.ag-projects.com"><blink@lists.ag-projects.com></a>
Subject: Re: [Blink] Blink for Linux hangs on second call when using
        PulseAudio input device
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:CAPhW+0KZhW+yzVrngDUeiN8bFMHpd6fRr2dpTUvCiyNNFz_fcg@mail.gmail.com"><CAPhW+0KZhW+yzVrngDUeiN8bFMHpd6fRr2dpTUvCiyNNFz_fcg@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"

Michael,

My case is likely different, as my goal was to use a JACK-connected audio
device in Blink.  JACK and PA play reasonably well together, but since PA
and Blink don't sometimes, I created an ALSA loopback, integrated it into
my JACK flow, and use it exclusively for connectivity with Blink.  I've
attached my asound.conf.

Once I have JACK started, I run a script called loop2jack, also attached.
This creates two JACK devices, cloop and ploop, the "capture" loop and
"playback" loop devices, respectively.  In Blink the devices appear as
"Loopback, Loopback PCM" for input and output devices.  Blink does support
JACK natively, but Blink's capture and playback connectors only appear when
the audio device is actively in use.  I don't have any auto-patching
mechanisms running in my JACK environment so this wasn't compatible.  I
find the ALSA loopback approach very good for my needs.

I also have trouble keeping the loopback PCM device playback level at 100%
in alsamixer.  I haven't spent much time on it.

All that said...  if you can configure Blink to use your audio device with
ALSA directly, rather than PA, you should be okay, no?  PA will release it,
and you won't have any of the Blink+PA problems we've seen.


- Jeff


On Sun, May 5, 2019 at 1:48 PM <a class="moz-txt-link-abbreviated" href="mailto:juleg.ch@gmail.com">juleg.ch@gmail.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:juleg.ch@gmail.com"><juleg.ch@gmail.com></a>
wrote:

</pre>
      <blockquote type="cite" style="color: #000000;">
        <pre class="moz-quote-pre" wrap="">Hello

It seams, that I'm experiencing the same problems here (Debian Stretch,
Blink 3.2.0)
After doing or receiving a call, Blink's cpu usage goes up to almost
100%. Also the application hangs afterward and I have to kill the
process and start again to continue.
PulseAudio shows a device "ALSA plug-in [python2.7]" in the recording
section of pavucontrol which is not released until the killing of the
process manually.

Jeff, apparently you managed to find a workaround for this problem. I've
read about ALSA-loopback devices under your posted link
<a class="moz-txt-link-freetext" href="https://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge">https://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge</a>
but I have no clue how this could help bypassing PA and solving the
problem in Blink. May be you could elaborate a little bit more how you
installed this virtual device (example section of .asoundrc?) and what
device one have to select in Blink for input/output? Can this
workaround coexist with installed PA?

Any help on this would be highly appreciated because I like the
application a lot, especially because it's written in Python and it's
possible for me to understand the source code an to do little
adjustments if needed.

Regards
Michael


</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-rfc2396E" href="http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0001.html"><http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0001.html></a>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asound.conf
Type: application/octet-stream
Size: 1616 bytes
Desc: not available
URL: <a class="moz-txt-link-rfc2396E" href="http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0002.obj"><http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0002.obj></a>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loop2jack
Type: application/octet-stream
Size: 132 bytes
Desc: not available
URL: <a class="moz-txt-link-rfc2396E" href="http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0003.obj"><http://lists.ag-projects.com/pipermail/blink/attachments/20190507/c026b512/attachment-0003.obj></a></pre>
    </blockquote>
  </body>
</html>