mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
c8ffcaaefe
commit
7798cf7364
6 changed files with 53 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue