mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
buffers: make alignment optional
Make the alignment parameter optional when negotiating buffers. Default to a 16 bytes alignment and adjust for the max cpu alignment. Remove the useless align buffer parameter in plugins, we always set it to 16 anyway.
This commit is contained in:
parent
30982775d9
commit
35cbe4e939
48 changed files with 54 additions and 91 deletions
|
|
@ -541,8 +541,7 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
MAX_SAMPLES * port->bpf,
|
||||
16 * port->bpf,
|
||||
INT32_MAX),
|
||||
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(port->bpf),
|
||||
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16));
|
||||
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(port->bpf));
|
||||
break;
|
||||
case SPA_PARAM_IO:
|
||||
switch (result.index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue