mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-20 06:38:10 +02:00
The period calculation now subtracts the per-port int32_t overhead from max_size before computing how many float samples fit. This guarantees active_ports * (period * sizeof(float) + sizeof(int32_t)) <= max_size, so packet_size = sizeof(header) + active_ports * sub_period_bytes <= mtu. sub_cycle is bounded by nframes / sub_period_size, matching the sender's num_packets = nframes / sub_period_size. Also ensure sub_period_size != 0 to avoid division by 0. |
||
|---|---|---|
| .. | ||
| packets.h | ||
| peer.c | ||