mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
control: make control links many to many
Output controls can be linked to many input controls and many input controls can receive input from many output controls. Keep the control link information inside the link.
This commit is contained in:
parent
7b3e7e2813
commit
24117b33c7
8 changed files with 131 additions and 106 deletions
|
|
@ -107,6 +107,12 @@ struct spa_param_info {
|
|||
SPA_MIN(SPA_MAX(_v, _low), _high); \
|
||||
})
|
||||
|
||||
#define SPA_SWAP(a,b) \
|
||||
({ \
|
||||
__typeof__(a) _t = (a); \
|
||||
a = b; b = _t; \
|
||||
})
|
||||
|
||||
#define SPA_TYPECHECK(type,x) \
|
||||
({ type _dummy; \
|
||||
typeof(x) _dummy2; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue