node: add _set_param()

This commit is contained in:
Wim Taymans 2019-11-21 13:09:28 +01:00
parent bca653198a
commit 6bd553f89b
2 changed files with 12 additions and 0 deletions

View file

@ -1630,6 +1630,15 @@ int pw_node_for_each_param(struct pw_node *node,
return res;
}
SPA_EXPORT
int pw_node_set_param(struct pw_node *node,
uint32_t id, uint32_t flags, const struct spa_pod *param)
{
pw_log_debug(NAME" %p: set_param %s flags:%08x param:%p", node,
spa_debug_type_find_name(spa_type_param, id), flags, param);
return spa_node_set_param(node->node, id, flags, param);
}
SPA_EXPORT
struct pw_port *
pw_node_find_port(struct pw_node *node, enum pw_direction direction, uint32_t port_id)

View file

@ -974,6 +974,9 @@ int pw_port_use_buffers(struct pw_port *port, struct pw_port_mix *mix, uint32_t
/** Change the state of the node */
int pw_node_set_state(struct pw_node *node, enum pw_node_state state);
int pw_node_set_param(struct pw_node *node,
uint32_t id, uint32_t flags, const struct spa_pod *param);
int pw_node_update_ports(struct pw_node *node);
int pw_node_initialized(struct pw_node *node);