mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
node: add better node autolink
Add node media, category and role properties and use those to select the target node. Tag the DSP node with the right media.class
This commit is contained in:
parent
bd27b32c39
commit
10fff4b2f8
6 changed files with 166 additions and 55 deletions
|
|
@ -91,6 +91,14 @@ struct pw_node_events {
|
|||
void (*finish) (void *data);
|
||||
};
|
||||
|
||||
/** Media type of the node, Audio, Video */
|
||||
#define PW_NODE_PROP_MEDIA "pipewire.media"
|
||||
/** Category: Playback, Capture, Duplex */
|
||||
#define PW_NODE_PROP_CATEGORY "pipewire.category"
|
||||
/** Role: Movie, Music, Camera, Screen, Chat, Game, Speech, DSP */
|
||||
#define PW_NODE_PROP_ROLE "pipewire.role"
|
||||
/** exclusive access to device */
|
||||
#define PW_NODE_PROP_EXCLUSIVE "pipewire.exclusive"
|
||||
/** Automatically connect this node to a compatible node */
|
||||
#define PW_NODE_PROP_AUTOCONNECT "pipewire.autoconnect"
|
||||
/** Try to connect the node to this node id */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue