core: improve alignment

Use the CPU alignment to align memory of allocated buffers. This makes
it more likely that all CPU optimizations can be done.
This commit is contained in:
Wim Taymans 2019-10-17 09:34:27 +02:00
parent c8ffcaaefe
commit 7798cf7364
6 changed files with 53 additions and 13 deletions

View file

@ -73,7 +73,6 @@ struct port {
struct spa_param_info params[8];
char position[16];
bool have_format;
struct spa_audio_info format;
uint32_t blocks;
uint32_t stride;
@ -82,6 +81,8 @@ struct port {
uint32_t n_buffers;
struct spa_list queue;
unsigned int have_format:1;
};
struct impl {