<div dir="ltr"><div>Thanks for your response.</div><div>I understand the problem of clock drift when we have several audio hardware devices (with different qwartz).</div><div>But here, it's a pity that the null video driver has an independent clock...</div><div>Concerning pipewire, for now it doesn't work with our particular application (no sound), but it seems to evolve quickly.</div><div>I haven't tried jack for now, but if it depends on pulseaudio, won't I have the same problem?</div><div><br></div><div>Renaud<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 4 févr. 2021 à 00:20, Alexander E. Patrakov <<a href="mailto:patrakov@gmail.com">patrakov@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">чт, 4 февр. 2021 г. в 03:10, Renaud GHIA <<a href="mailto:rghia@tixeo.com" target="_blank">rghia@tixeo.com</a>>:<br></div><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 dir="ltr"><div>Thank you for the tip.</div><div>Now I am sure that resampling does not apply (see below).</div><div>But unfortunately pulseaudio always consumes 30% of one CPU core!</div></div></blockquote><div><br></div><div>The reason is that you are using module-loopback. Due to a potential difference between the clocks on the null sink and on the real sound card (even though both report 44100 Hz), it always has to resample in order to correct for the clock skew. If you don't understand, here is an analogy: you have two mechanical watches. Even though both claim that their hour hand makes one full circle every 12 hours, in fact, if left unattended, they will diverge over time. There is no way to avoid that, except by moving to Jack or PipeWire which simply don't introduce a null sink with an independent clock.</div><div><br></div><div>If you decide to stay on PulseAudio, you can tweak the resampling method. The default, speex-float-1, is light on the CPU resources and should produce no distortions detectable by human ear on typical speech and music. It does produce easily detectable distortions on specifically crafted signals. If you want to make sure that the resampler is transparent no matter what is thrown at it, use speex-float-5. There is no point in going higher than that.</div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr">Alexander E. Patrakov<br>CV: <a href="http://u.pc.cd/wT8otalK" target="_blank">http://u.pc.cd/wT8otalK</a></div></div></div>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org" target="_blank">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div>