<br><br><div class="gmail_quote">On Mon, Jan 23, 2012 at 5:53 PM, Jeffrey Barish <span dir="ltr"><<a href="mailto:jeff_barish@earthlink.net">jeff_barish@earthlink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Thursday, December 15, 2011 09:00:33 am Colin Guthrie wrote:</div><div>> 'Twas brillig, and Jeffrey Barish at 15/12/11 15:30 did gyre and gimble:</div><div>> > On Thu 15 06:48:25 Colin Guthrie wrote:</div>
<div>> >> 'Twas brillig, and Dalleau, Frederic at 15/12/11 09:57 did gyre and gimble:</div><div>> >>> Hi Jeffrey,</div><div>> >>> </div><div>> >>> Maybe module-switch-on-connect can help you</div>
<div>> >>> <a href="http://pulseaudio.org/wiki/Modules#module-switch-on-connect" target="_blank">http://pulseaudio.org/wiki/Modules#module-switch-on-connect</a></div><div>> >>> </div><div>> >>> In combination with module-default-device-restore, you should always</div>
<div>> >>> have the default sink point to the latest connected device.</div><div>> >> </div><div>> >> Yup, this is the short term solution.</div><div>> >> </div><div>> >> In the future (next 6 months hopefully) then the priority list routing</div>
<div>> >> system should make this a bit easier to configure.</div><div>> >> </div><div>> >> </div><div>> >> Col</div><div>> > </div><div>> > module-switch-on-connect looks perfect, but I don't seem to have it. I</div>
<div>> > am running version 0.9.21-63-gd3efa-dirty (on Ubuntu Server 10.10). </div><div>> > What do I need to do to get module-switch-on-connect?</div><div>> </div><div>> You need to update to PA 1.0+ (we recommend PA 1.1. It should be quite</div>
<div>> easy to build for older distros as only one additional dep in json-c.</div><div>> </div><div>> All the best.</div><div>> </div><div>> Col</div><div><br></div>The version of pulseaudio available at the Ubuntu repository recently went to 1:0.9.22, so it appears that I can now try using this feature. Before I install pulseaudio, however, I am wondering what happens when I disconnect the USB DAC. Here's the scenario about which I am wondering: I start with nothing connected. Sound comes out the internal DAC. I connect a USB DAC. module-switch-on-connect detects the connection of a new device and reroutes sound to the USB DAC. Good, so far. Now I disconnect the USB DAC. From the name of the module -- "module-switch-on-<i>connect</i>" -- it isn't clear to me what happens. I hope that the module also switches on <i>dis</i>connect so that the sound will revert to the internal DAC. I do not anticipate connecting any other audio sinks, so I can probably manage for now, at least, without a more general priority scheme -- depending on the answer to my question, of course.<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br>Jeffrey Barish<br>
</font></span></blockquote></div><br><br clear="all"><div>Oh. I misunderstood the version number. Apparently the "1:" isn't relevant, so the version is actually 0.9.22, which presents the same problem I had before. I might try to build a new version, but I couldn't get the build to work the last time I tried.</div>
-- <br>Jeffrey Barish<br>