<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br><div><div dir="ltr" class="m_5726961842338008430gmail_signature"><div dir="ltr"><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">><i> Hi! PulseEffects developer here again.
</i>><i>
</i>><i> Like the title says I'd like to know if rewinds can cause crackling noises
</i>><i> when we are recording from a null sink monitor.
</i>
Yes it can:
<a href="https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/304">https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/304</a>
><i> In PulseEffecs I use the
</i>><i> plugin pulsesrc from GStreamer to record the null sink monitor and whenever
</i>><i> there is a change in the null sink volume or in the volume of a sink input
</i>><i> playing to the null sink I can here noises. Looking at Pulseaudio's logs I
</i>><i> can see lines with:
</i>><i>
</i>><i> [null-sink] module-null-sink.c: Requested to rewind 3528 bytes.
</i>><i> [null-sink] sink.c: Processing rewind...
</i>><i> [null-sink] sink-input.c: Have to rewind 2840 bytes on render memblockq.
</i>><i> [null-sink] sink-input.c: Have to rewind 1420 bytes on implementor.
</i>><i> [null-sink] source.c: Processing rewind...
</i>><i> [null-sink] module-null-sink.c: Rewound 2840 bytes.
</i>><i> [pulseaudio] module-stream-restore.c: Storing volume/mute/device for stream
</i>><i> sink-input-by-media-role:music.
</i>><i> [pulseaudio] protocol-native.c: Client spotify changes volume of sink input
</i>><i> Spotify.
</i>><i>
</i>><i> whenever the application volume is changed. At the same time they are shown
</i>><i> I can hear cracklings. So it seems related. I noticed that forcing pulsesrc
</i>><i> to use lower latencies help but do not fix the problem. Changing volumes
</i>><i> with pulsesrc latency-time parameter set to 1000 us produces less noises
</i>><i> than when it is set to 10000 us.
</i>><i>
</i>><i> I tried my best to see if there is anything I can do on my side to remove
</i>><i> this noise I found nothing. Is that how things are or is there anything
</i>><i> that can be done to remove this noises?
</i>
This is how things are. It would be great if someone would have a hard
look at the monitor source rewinding code and see what goes wrong
there.</pre></div></div></div></div></div></div>
</blockquote></div>Ok. Thank you for your answer Tanuk. For some reason it never got to my email. I only noticed it because I have just opened the mailing list. Strange.<div><br></div><div>Although a little annoying in my opinion this is not the end of the world. The null sink reconfigure feature will be much more useful. </div><div><br></div><div>Best regards,</div><div><br></div><div> Wellington<br clear="all"><div><br></div>-- <br><div dir="ltr" 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></div>