<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> IOhannes m zmoelnig &lt;zmoelnig@iem.at&gt;<br> <b><span style="font-weight: bold;">To:</span></b> pd-dev@iem.at <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 28, 2013 3:26 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD-dev] jack dbus?<br> </font> </div> <div class="y_msg_container"><br>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>On 2013-05-28 07:08, Jonathan Wilkes wrote:<br>&gt;&gt; Ok, quick restatement of the problem:<br>&gt;&gt; <br>&gt;&gt; How does one get Pd to
 just run in GNU/Linux for casual/sporadic<br>&gt;&gt; use cases? Like 1 fire up Pd to patch an idea with Firefox/music<br>&gt;&gt; player/other stuff sitting in the background 2 audio from online<br>&gt;&gt; tutorial while patching in Pd with audio 3 some dude screwing<br>&gt;&gt; around in Ubuntu with it, learns enough to get interested in fairly<br>&gt;&gt; low latency to process some guitar sounds, possibly live<br>&gt;&gt; <br>&gt;&gt; Cases 1 and 2 could benefit from having a PulseAudio backend in Pd,<br>&gt;&gt; but case 3 would still be a pain because at the point that the<br>&gt;&gt; guitarist cares about latency he/she is back to screwing around<br>&gt;&gt; with audio settings (either directly through ALSA or with JACK).<br>&gt;&gt; (If I'm wrong and Pulse can cover use case 3 I'd like to hear about<br>&gt;&gt; it, but from what I've read Pulse is not designed with realtime<br>&gt;&gt; audio processing as a goal.)<br><br>&gt;what works for me
 so far is:<br>&gt;- - run jack as the native backend on my desktop (jackd gets autostarted<br>&gt;at login, and is running throughout my session)<br><br>How do you configure jack to start at login?<br><br>&gt;- -- obviously Pd will always use the jack backend<br>&gt;- - run pulseaudio *on top of jack*.<br><br>Yes, that is the way to go.&nbsp; And as far as I can tell, that's what PulseAudio<br>is supposed to do when jack is started, whether it's by jack d-bus, at login,<br>or manually starting jack.<br><br>&gt;- -- thus any pulseaudio-aware application (like firefox) can simply<br>&gt;play back<br>&gt;- -- i can route pulseaudio-apps into Pd (not that i ever needed this<br>&gt;"in real life")<br><br>&gt;i really think that this is the way to go: have any consumer-framework<br>&gt;sit on top of a "pro" framework, rather than the other way around<br>&gt;(e.g. have pulseaudio provide a virtual alsa-device)<br><br>&gt;setting up was pretty easy by
 installing the "pulseaudio-module-jack"<br>&gt;(on debian),and uninstalling all the other pa backends.<br><br>Why is it necessary to uninstall those other backends?<br><br>&gt;&gt; <br>&gt;&gt; So, I'm curious about this: <br>&gt;&gt; <a href="http://trac.jackaudio.org/wiki/JackDbusPackaging" target="_blank">http://trac.jackaudio.org/wiki/JackDbusPackaging</a><br>&gt;&gt; <br>&gt;&gt; Specifically the "D-bus only JACK" route.&nbsp; _If_ it works reliably<br>&gt;&gt; (and of course that's a big if) then it gives the best of both<br>&gt;&gt; worlds: all cases 1,2, and 3 above are covered by the JACK server<br>&gt;&gt; automatically starting and Pulse getting out of the way for it.<br>&gt;&gt; Moreover, Pulse clients get routed to JACK with what I take are<br>&gt;&gt; "sane" defaults.&nbsp; So, if you have Pd running through JACK with this<br>&gt;&gt; setup and then you open up a youtube video in Firefox, Pulse will<br>&gt;&gt; automagically make a
 connection to JACK for it and (I'm guessing)<br>&gt;&gt; hook it up to the output.<br>&gt;&gt; <br>&gt;&gt; Any thoughts on this?<br><br>&gt;personally i would prefer to *not* pull in additional dependencies if<br>&gt;possible. afair, d-bus is notorious for pulling in an entire desktop<br>&gt;environment.<br><br>it does not depend on an entire desktop environment.<br><br>&gt;one of the problems of Pd i see is, that all the audio backends are<br>&gt;linked into the main binary. so if you have a binary with jack/dbus<br>&gt;support, you *must* install jack/dbus or you will not be able to use<br>&gt;Pd at all (even if you don't care for audio at all).<br><br>I must be reading different documentation than you because AFAICT<br>jack d-bus is a user-facing option for how to get JACK to interact with<br>the system.&nbsp; Recommending it as the preferred way to connect doesn't<br>require any backend coding.<br><br>But I'm not actually recommending it as the
 preferred way-- I still need<br>to test it and compare it to the "classic" way of using JACK.<br><br>&gt;&gt; I'm thinking if we could build up a body of knowledge on this<br>&gt;&gt; approach it would be the easiest way to get worry-free audio setups<br>&gt;&gt; with GNU/Linux distros that wouldn't give new users headaches.<br>&gt;&gt; Plus it would scale up: if they learn and care about insanely low<br>&gt;&gt; latencies, they are already using JACK so it's just a matter of<br>&gt;&gt; firing up qjackctl or whatever and configuring the audio server<br>&gt;&gt; they've been using.<br><br>&gt;from a technical perspective, i think that the way to go is to support<br>&gt;as many (pro and consumer) audio backends as possible, but always make<br>&gt;this a runtime-choice (that is: make audio backend support in Pd a<br>&gt;loadable mechanism)<br><br>That's a fine goal, as it would solve the problem about requiring JACK/ALSA<br>dependencies even if the user
 doesn't want audio.&nbsp; But given a limited amount<br>of time and money, the question is what is the easiest way to help new and old<br>users avoid Linux Audio Hell?&nbsp; And I imagine that is currently either autostarting<br>JACK at login or taking the JACK dbus route.<br><br>-Jonathan<br><br>&gt;fgamsdr<br>&gt;IOhannes<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.12 (GNU/Linux)<br>Comment: Using GnuPG with Icedove - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br><br>iEYEARECAAYFAlGkXBgACgkQkX2Xpv6ydvRxOgCg7sHPrM2tsFzx3n9hKmxUquvY<br>lcYAoOU+IvT1vEi8vQdexgI7Te4qIW/C<br>=y+ic<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________<br>Pd-dev mailing list<br><a ymailto="mailto:Pd-dev@iem.at" href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br><a href="http://lists.puredata.info/listinfo/pd-dev"
 target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br><br><br></div> </div> </div>  </div></body></html>