<html><head></head><body>Yes, of course, it's possible to unload module-switch-on-connect, but that is breaking the existimg user setup.<br>
"a command line switch could be added<br>
to the module so that it ignores virtual sinks" Will be best. Does this flag exist now?<br><br><div class="gmail_quote">11 ноября 2017 г. 14:26:21 GMT+03:00, Georg Chini <georg@chini.tk> пишет:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 11.11.2017 05:28, Михаил Новоселов, Думалогия wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hello,<br /><br /> PulseEffects, an application, that can apply different effects or <br /> equalize both input and output sound, cannot work properly when <br /> module-switch-on-connect is on. PulseEffects creates a virtual sinks, <br /> but PulseAudio's module-switch-on-connect makes it a default sinks <br /> automatically what severely breaks the logic of PulseEffect's work.<br /><br /> Please see <a href="https://github.com/wwmm/pulseeffects/issues/99">https://github.com/wwmm/pulseeffects/issues/99</a><br /><br /> 1) Can we specify that the created sink is a virtual one?<br /> 2) Maybe there are other ways to prevent module-switch-on-connect from <br /> making a newly created virtual device a default one?<br /><br /> I wrote the script Dumacast <a href="https://github.com/mikhailnov/dumacast">https://github.com/mikhailnov/dumacast</a> <br /> (first of all for my company's (Dumalogiya, http://думалогия.рф) <br /> internal usage), and starting with the newest version of Ubuntu, where <br /> module-switch-on-connect is on, I ran into the same troubles. My <br /> script <br /> <a href="https://github.com/mikhailnov/dumacast/blob/master/usr/bin/dumacast">https://github.com/mikhailnov/dumacast/blob/master/usr/bin/dumacast</a> <br /> creates virtual sinks via pactl (lines 135-149), and they are also <br /> made default and break the logic of how the script works. I currently <br /> have no idea how to handle it without unloading module-switch-on-connect.<br /><br /> I tried both Ubuntu's 17.10 default PulseAudio and built from dEbian <br /> sources PulseAudio 11, the situation is the same with them both.<br /><br /> What can be done?</blockquote><br />Do you really need module-switch-on-connect? If not, you could just <br />check with<br />"pactl list modules short" if the module is loaded and unload it prior <br />to starting<br />your application. You can also remove it from <a href="http://default.pa">default.pa</a>, so that it <br />never gets<br />loaded.<br /><br />If you need module-switch-on-connect, a command line switch could be added<br />to the module so that it ignores virtual sinks. The default behavior <br />however can<br />not be changed, because other applications might rely on the current setup.<br /><br />Regards<br />              Georg<br /><br /></pre></blockquote></div><br>
-- <br>
Простите за краткость, создано в K-9 Mail.</body></html>