<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 20:39, wellington wallace
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAJnyhedZX2uXj-pKgyamnmncO533nc+3DahjfLgXH98ATzU7w@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Sun, Nov 12, 2017 at 12:05 PM,
Georg <span class="" id=":17g.21" tabindex="-1" style="">Chini</span>
<span dir="ltr"><<a href="mailto:georg@chini.tk"
target="_blank" moz-do-not-send="true"><span class=""
id=":17g.22" tabindex="-1" style="">georg</span>@<span
class="" id=":17g.23" tabindex="-1" style="">chini</span>.<span
class="" id=":17g.24" tabindex="-1" style="">tk</span></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<div
class="gmail-m_5587300346966034327moz-cite-prefix">On
12.11.2017 14:36, wellington wallace wrote:<br>
</div>
<blockquote type="cite">
<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?</div>
</div>
</div>
</blockquote>
</span></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
No, there isn't.<br>
<br>
<blockquote type="cite"
cite="mid:CAAJnyhedZX2uXj-pKgyamnmncO533nc+3DahjfLgXH98ATzU7w@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>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>
<div> Wellington</div>
</div>
</blockquote>
</span>And as gmail considered your answer to <span
class="" id=":17g.25" tabindex="-1" style="">mikhailnov</span> a
spam I did not notice you had already asked to not do it
:-(</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
Yes, unfortunately some mail providers consider .tk domains as spam.<br>
<br>
<blockquote type="cite"
cite="mid:CAAJnyhedZX2uXj-pKgyamnmncO533nc+3DahjfLgXH98ATzU7w@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Yes, what I am using in <span class=""
id=":17g.26" tabindex="-1" style="">PulseEffects</span> are
null sinks. The <span class="" id=":17g.27" tabindex="-1"
style="">workflow</span> is more or less the following. The
audio application sink input is moved from the default sink to
a null sink created by <span class="" id=":17g.28"
tabindex="-1" style="">PulseEffects</span>. Then a <span
class="" id=":17g.29" tabindex="-1" style="">Gstreamer</span>
pipeline records from this null sink monitor and applies
effects. After that <span class="" id=":17g.30" tabindex="-1"
style="">Gstreamer</span> plays to the default sink. I use a
similar logic to apply effects for microphone. But in that
case <span class="" id=":17g.31" tabindex="-1" style="">Gstreamer</span>
records from the microphone applies effects and then plays to
a null sink. Applications recording from this null sink
monitor will have the audio from the microphone with effects
applied. So we have 2 null sinks and the last one loaded is
being set as default sink by module-switch-on-connect. This
obviously breaks all the logic I am using.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I think we can live with a switch
in module-switch-on-connect. In this case I would have to use
<span class="" id=":17g.32" tabindex="-1" style="">libpulse</span>
api to detect it is running and then unload/load it with the
new option to ignore null sinks. Could this loading/unloading
performed while <span class="" id=":17g.33" tabindex="-1"
style="">Pulseaudio</span> is running be a problem?</div>
</div>
</blockquote>
<br>
I just sent a patch to the list that should solve your problem. I
asked Tanu, and he said<br>
it would be OK if module-switch-on-connect ignores virtual
sinks/sources by default.<br>
So with the patch, the module will only switch to new hardware
sinks/sources.<br>
<br>
<br>
</body>
</html>