[pulseaudio-discuss] [PATCH v4] Make module loopback honor requested latency
Alexander E. Patrakov
patrakov at gmail.com
Sun Feb 8 10:54:03 PST 2015
01.02.2015 03:43, Georg Chini wrote:
> + /* Minimum number of adjust times + 1 needed to adjust at 0.75% deviation from base rate */
> + min_cycles = (double)abs(latency_difference) / u->adjust_time / 0.0075 + 1;
> +
> + /* Rate calculation, maximum deviation from base rate will be less than 0.75% due to min_cycles */
> + new_rate = base_rate * (1.0 + latency_difference / min_cycles / u->adjust_time) + 0.5;
What's the aim here with min_cycles? Why not just clamp new_rate
post-factum to 0.75% vicinity of base_rate, as this is done in the 2‰ case?
--
Alexander E. Patrakov
More information about the pulseaudio-discuss
mailing list