media-session: keep more info about ports

Parse the DSP type and the channel and keep it around
This commit is contained in:
Wim Taymans 2020-07-22 11:27:23 +02:00
parent 0ca4a5621c
commit f6753eefc3
2 changed files with 25 additions and 2 deletions

View file

@ -153,6 +153,11 @@ struct sm_port {
struct sm_object obj;
enum pw_direction direction;
#define SM_PORT_TYPE_UNKNOWN 0
#define SM_PORT_TYPE_DSP_AUDIO 1
#define SM_PORT_TYPE_DSP_MIDI 2
uint32_t type;
uint32_t channel;
struct sm_node *node;
struct spa_list link; /**< link in node port_list */