Skip to content

pstream: Pass frame size to keep split memblock parts aligned

pa_pstream_send_memblock() would split incoming memblock into parts not exceeding maximum pool block size.

To make sure split parts of memblock are still frame-aligned add new function pa_pstream_send_memblock_align(), find out required alignment from stream sample format and pass it there. Reimplement original pa_pstream_send_memblock using this function with default alignment bumped to 256 which is good up to 32bit 64ch frames.

Merge request reports