loopback: Fix sink latency calculation if source is alsa source with fixed latency
authorGeorg Chini <georg@chini.tk>
Mon, 4 Jan 2021 20:08:05 +0000 (21:08 +0100)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 4 Jan 2021 20:16:52 +0000 (20:16 +0000)
commit0efae0488ccd4536926f5fa2b4cf524e63da9095
treec443928ab49f18b37ae6741a96155e6a2aeef3f8
parentf18f55bb5ee4391370e59528ff0aa93068299252
loopback: Fix sink latency calculation if source is alsa source with fixed latency

When an alsa source with fixed latency is used, the actual latency of the source
will only be one fragment size. This is not taken into account when the required
sink latency is calculated.

This patch fixes the issue.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/451>
src/modules/module-loopback.c