<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 12.11.2017 14:36, wellington wallace
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAJnyhfCC5ozaNpw-1TqXGEjyYoX_e3BTmP2Ait8rN8GiaBCAA@mail.gmail.com">
<div dir="ltr">Another thing that would work is telling Pulseaudio
that null sinks created by PulseEffects should never be used as
fallback devices. If this was a null sink property I could set
it in PulseEffects code and the user would not have to mess with
Pulseaudio's configuration.
<div><br>
<div>As we are talking about null sinks I would like to ask
one more question. Is it possible to change a null sink rate
after it was created? I searched in the libpulse api docs
but I could not find a way. I am asking because at
PulseEffects startup I set the null sink rate to the same
rate of the current fallback device. If the user changes the
fallback device to one with different sampling rate while
PulseEffects is open we will have unnecessary resampling as
the null sink is using the rate of the previous device.</div>
<div><br>
</div>
<div>Best regards</div>
<div><br>
</div>
</div>
<div> Wellington</div>
</div>
</blockquote>
<br>
Please don't top post. Does that mean the original question was not
about virtual sinks<br>
but about the null sink? The null sink is not counted as a virtual
sink and the patch I sent<br>
is useless in that case. The null sinks could however be excluded in<br>
module-switch-on-connect by a similar approach.<br>
<br>
I guess it would also be possible to set some
"do-not-use-as-default" property on a sink<br>
that could be parsed by the default sink selection process, but that
would not only affect<br>
module-switch-on-connect but would also need to be considered in the
core.<br>
<br>
<blockquote type="cite"
cite="mid:CAAJnyhfCC5ozaNpw-1TqXGEjyYoX_e3BTmP2Ait8rN8GiaBCAA@mail.gmail.com">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Nov 11, 2017 at 10:03 AM,
Михаил Новоселов, Думалогия <span dir="ltr"><<a
href="mailto:mikhailnov@dumalogiya.ru" target="_blank"
moz-do-not-send="true">mikhailnov@dumalogiya.ru</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>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 <<a
href="mailto:georg@chini.tk" target="_blank"
moz-do-not-send="true">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="m_8855245293421820670k9mail"><span class="">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" target="_blank" moz-do-not-send="true">https://github.com/wwmm/<wbr>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" target="_blank" moz-do-not-send="true">https://github.com/mikhailnov/<wbr>dumacast</a>
(first of all for my company's (Dumalogiya, <a href="http://xn--80agbsneq0b4h.xn--p1ai" moz-do-not-send="true">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" target="_blank" moz-do-not-send="true">https://github.com/mikhailnov/<wbr>dumacast/blob/master/usr/bin/<wbr>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>
</span>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" target="_blank" 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>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Простите за краткость, создано в K-9 Mail.</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Prof.° Wellington Wallace Miguel Melo<br>
<br>
<div>CEFET/RJ Uned Nova Iguaçu<br>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>