kirknorthrop / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

Feature Request: Jack Audio #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great to be able to output into jack. I wanted to run a software 
crossover and equalizer. It seems jack is much better suited than trying to 
route things around in alsa, especially when it comes to synchronisation.

Original issue reported on code.google.com by ryan130...@gmail.com on 12 Sep 2013 at 12:00

GoogleCodeExporter commented 8 years ago
Any reasons why this will not work for you?

Original comment by trio...@btinternet.com on 14 Sep 2013 at 12:53

GoogleCodeExporter commented 8 years ago
Sorry, why what will not work not for me?. I'd also like to output several 
streams to the same physical output.

Original comment by ryan130...@gmail.com on 14 Sep 2013 at 1:49

GoogleCodeExporter commented 8 years ago
The question is whether this will work for you - if it does then there is no 
need for jack output direct from squeezelite (which requires more software to 
be written)

Original comment by trio...@btinternet.com on 14 Sep 2013 at 2:51

GoogleCodeExporter commented 8 years ago
I'm really sorry, I am a bit dumb. I don't know what you mean by "this"?

Original comment by ryan130...@gmail.com on 14 Sep 2013 at 5:28

GoogleCodeExporter commented 8 years ago
Sorry - I meant to post this - instructions of how to use alsa output with jack:
http://jackaudio.org/routing_alsa

Original comment by trio...@btinternet.com on 14 Sep 2013 at 8:07

GoogleCodeExporter commented 8 years ago
I haven't tried it. I'll give it a go. It will lose synchronization guarantees 
if I run multiple squeezelite instances for different rooms, but it might be 
suitable if the buffer doesn't cause them to be too out of sync. If they are 
different rooms a few ms probably won't be noticeable. If they are all on the 
same DAC timing source then the sync shouldn't drift anyway. I'm not sure on 
the work involved to output straight to jack, it might be a big job? I'll post 
how I go on here. Thanks.

Original comment by ryan130...@gmail.com on 15 Sep 2013 at 4:49

GoogleCodeExporter commented 8 years ago
You could also try building squeezelite with portaudio output - this looks like 
it supports jack if the portaudio library is compiled appropriately.  The 
advantage of this is that there is no new code to write.

Original comment by trio...@btinternet.com on 15 Sep 2013 at 10:08

GoogleCodeExporter commented 8 years ago
Thanks. That does look like an option. Do you use callback or read/write for 
portaudio I/O?

Original comment by ryan130...@gmail.com on 15 Sep 2013 at 11:23

GoogleCodeExporter commented 8 years ago
The portaudio code uses a callback for i/o.

Original comment by trio...@btinternet.com on 15 Sep 2013 at 6:11