pipewire/spa/include
Martin Geier 32fe4dbda3 bluez: introduce media.min-latency-ms for media source
Target number of samples stored in buffer is calculated by
target = SPA_CLAMP(SPA_ROUND_UP(SPA_MAX(spike * 3/2, duration),
		SPA_CLAMP((int)this->rate / 50, 1, INT32_MAX)),
			duration, max_buf - 2*packet_size);
At beginning of the playback is spike == 0, so the target is set to
duration. Our BT is not able to maintain such low latency and drops
so spike is increased. This can happens multiple times until playback
is stable.

This strategy causes few dropouts at the beginning of a new playback,
in my case on each new track.

Add min-latency-ms property to reduces spikes and the likelihood of
dropouts at the beginning.
2026-06-11 20:34:22 +02:00
..
spa bluez: introduce media.min-latency-ms for media source 2026-06-11 20:34:22 +02:00
meson.build spa: expose utils/cleanup.h for external users 2023-10-11 19:56:11 +02:00