<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11.11.2017 13:03, Михаил Новоселов,
Думалогия wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3452431B-12F3-4607-BFCD-E1AE6BF1AE31@dumalogiya.ru">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>
</blockquote>
<br>
Please don't top post on that list. No, such a flag does not exist
right now<br>
but it can be added rather easily. I'll send you an untested patch,
please<br>
check if it works as expected.<br>
<br>
<blockquote type="cite"
cite="mid:3452431B-12F3-4607-BFCD-E1AE6BF1AE31@dumalogiya.ru"><br>
<div class="gmail_quote">11 ноября 2017 г. 14:26:21 GMT+03:00,
Georg Chini <a class="moz-txt-link-rfc2396E" href="mailto:georg@chini.tk"><georg@chini.tk></a> пишет:
<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:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hello,
PulseEffects, an application, that can apply different effects or
equalize both input and output sound, cannot work properly when
module-switch-on-connect is on. PulseEffects creates a virtual sinks,
but PulseAudio's module-switch-on-connect makes it a default sinks
automatically what severely breaks the logic of PulseEffect's work.
Please see <a href="https://github.com/wwmm/pulseeffects/issues/99" moz-do-not-send="true">https://github.com/wwmm/pulseeffects/issues/99</a>
1) Can we specify that the created sink is a virtual one?
2) Maybe there are other ways to prevent module-switch-on-connect from
making a newly created virtual device a default one?
I wrote the script Dumacast <a href="https://github.com/mikhailnov/dumacast" moz-do-not-send="true">https://github.com/mikhailnov/dumacast</a>
(first of all for my company's (Dumalogiya, <a class="moz-txt-link-freetext" href="http://думалогия.рф">http://думалогия.рф</a>)
internal usage), and starting with the newest version of Ubuntu, where
module-switch-on-connect is on, I ran into the same troubles. My
script
<a href="https://github.com/mikhailnov/dumacast/blob/master/usr/bin/dumacast" moz-do-not-send="true">https://github.com/mikhailnov/dumacast/blob/master/usr/bin/dumacast</a>
creates virtual sinks via pactl (lines 135-149), and they are also
made default and break the logic of how the script works. I currently
have no idea how to handle it without unloading module-switch-on-connect.
I tried both Ubuntu's 17.10 default PulseAudio and built from dEbian
sources PulseAudio 11, the situation is the same with them both.
What can be done?</blockquote>
Do you really need module-switch-on-connect? If not, you could just
check with
"pactl list modules short" if the module is loaded and unload it prior
to starting
your application. You can also remove it from <a href="http://default.pa" moz-do-not-send="true">default.pa</a>, so that it
never gets
loaded.
If you need module-switch-on-connect, a command line switch could be added
to the module so that it ignores virtual sinks. The default behavior
however can
not be changed, because other applications might rely on the current setup.
Regards
Georg
</pre>
</blockquote>
</div>
<br>
-- <br>
Простите за краткость, создано в K-9 Mail.
</blockquote>
<p><br>
</p>
</body>
</html>