<div dir="ltr">It seems I should just save headaches and use only ALSA for local audio devices.<div>This means I am going to use a pair of good speakers for my desktop computer and a pair of cheap speakers for Raspberry Pi.</div><div>Raspberry Pi will be responsible for turning on and off speakers via relays.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 12:46 AM Len Ovens <<a href="mailto:len@ovenwerks.net">len@ovenwerks.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 28 Mar 2019, crocket wrote:<br>
<br>
> On Thu, Mar 28, 2019 at 4:06 PM Len <<a href="mailto:len@ovenwerks.net" target="_blank">len@ovenwerks.net</a>> wrote:<br>
>       Jack can not use two devices. speakers (via some kind of on board<br>
>       audio<br>
>       device I assume) and the usb mic will not be in sync and so clicks<br>
>       and<br>
>       pops would be assured. Some kind of sample rate conversion would be<br>
>       needed. zita-ajbridge or alsa-in would work for that.<br>
> <br>
> <br>
> Can I not just run two jack servers on Raspberry Pi?<br>
<br>
How would that help you? As soon as you want to use the mic and your <br>
speakers with the same application you will have under and over runs <br>
between one and the other. The only way around that is to use SRC which <br>
can be provided by either zita-ajbridge or alsa-in/out (the second comes <br>
with jack, but the first is better and may now be a part of jackd1). Do <br>
note that using netjack with the device on the Pi means that the internal <br>
audio on your desktop can't be used at the same time for the same reason. <br>
The backend for the jack server on your desktop is the jack server on the <br>
Pi so any audio device on your desktop would also have to be added via an <br>
SRC client such as zita-ajbridge or alsa_in/out. This means you desktop <br>
relies on your Pi for a solid sync... if you are usng your desktop audio <br>
for anything important that requires solid sync, I would use the local <br>
device as backend and use zita-njbridge to join the two jack servers on <br>
the two machines.<br>
<br>
> My Gentoo Linux desktop doesn't have pulseaudio. It only has ALSA at this moment.<br>
> I do not want pulseaudio.<br>
<br>
No problem (no skype either, but you may not need it) Lots of people use a <br>
jack to alsa bridge<br>
<br>
> I want the voices to not lag too much behind the lips.<br>
>  <br>
> I just want Raspberry Pi and my desktop to share my speakers. Raspberry Pi will<br>
> serve as a morning alarm, and I need to watch videos on my desktop computer.<br>
> I use a USB microphone for foreign language practice and audio calls.<br>
<br>
That is what pulse (and the up and coming... maybe, Pipewire) is made for, <br>
but lots of people do not want to use it, Jack with alsa will get you <br>
there too. Latency shouldn't be a problem for that use, even with jack <br>
running 1024/2, though 128/2 should still be stable abd much better.<br>
<br>
> I can technically buy a USB hub that supports per-port power switching to have my<br>
> USB microphone turned off most of the time.<br>
> But, since Raspberry Pi 3 B+ supports per-port power switching, I wanted to know<br>
> whether I could use Raspberry Pi as a network USB hub or a network USB<br>
> microphone.<br>
<br>
Not sure I know what you mean by that... if any of my guesses are right, <br>
the answer is I don't know.<br>
<br>
--<br>
Len Ovens<br>
<a href="http://www.ovenwerks.net" rel="noreferrer" target="_blank">www.ovenwerks.net</a><br>
_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="https://lists.linuxaudio.org/listinfo/linux-audio-user" rel="noreferrer" target="_blank">https://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
</blockquote></div>