spa: add RequestProcess command and event

The event is emitted by a node that is not a driver but wants the graph
to be scheduled. The command is sent to the driver and suggest that the
graph be scheduled.
This commit is contained in:
Wim Taymans 2021-10-19 15:59:21 +02:00
parent 7529e7c47c
commit 3471391e0e
3 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,8 @@ enum spa_node_event {
SPA_NODE_EVENT_Error,
SPA_NODE_EVENT_Buffering,
SPA_NODE_EVENT_RequestRefresh,
SPA_NODE_EVENT_RequestProcess, /*< Ask the driver to start processing
* the graph */
};
#define SPA_NODE_EVENT_ID(ev) SPA_EVENT_ID(ev, SPA_TYPE_EVENT_Node)