[pulseaudio-discuss] Purpose of 8-byte buffer alignment in cpu-mix-test.c

Tanu Kaskinen tanuk at iki.fi
Sat Nov 19 17:21:50 UTC 2016


Hi Peter!

Do you happen to remember why the audio buffers in run_mix_test() in
src/tests/cpu-mix-test.c are forced to have 8-byte alignment? I plan to
replace the stack-allocated buffers with regular memblocks, and the
memblock backing memory is only aligned to 4 bytes on 32-bit machines.
It's possible to still have the old alignment behaviour, but that
requires extra code, and if 4-byte alignment is equally fine, then I'd
prefer to avoid the extra code.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list