mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
channelmix: improve control parsing
This commit is contained in:
parent
1352c7555e
commit
699bed4a1f
4 changed files with 36 additions and 17 deletions
|
|
@ -109,6 +109,9 @@ struct spa_pod_bitmap {
|
|||
/* array of uint8_t follows with the bitmap */
|
||||
};
|
||||
|
||||
#define SPA_POD_ARRAY_TYPE(arr) ((arr)->body.child.type)
|
||||
#define SPA_POD_ARRAY_N_VALUES(arr) (((arr)->pod.size - sizeof(struct spa_pod_array_body)) / (arr)->body.child.size)
|
||||
|
||||
struct spa_pod_array_body {
|
||||
struct spa_pod child;
|
||||
/* array with elements of child.size follows */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue