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:
Wim Taymans 2018-04-12 09:52:15 +02:00
parent bd27b32c39
commit 10fff4b2f8
6 changed files with 166 additions and 55 deletions

View file

@ -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 */