spa: use clock info

Use the port clock io area to get timing info and use this as
the time in the graph when we wake up.
This commit is contained in:
Wim Taymans 2018-07-17 17:37:55 +02:00
parent 2b1b356455
commit d3c203b744
10 changed files with 134 additions and 15 deletions

View file

@ -290,6 +290,7 @@ struct pw_node {
struct pw_loop *data_loop; /**< the data loop for this node */
struct {
struct spa_io_clock *clock; /**< io area of the clock or NULL */
struct pw_driver_quantum *quantum;
struct spa_graph *driver;
struct spa_graph_node root;
@ -355,6 +356,7 @@ struct pw_port {
struct {
struct spa_io_buffers io; /**< io area of the port */
struct spa_io_clock clock; /**< io area of the clock */
struct spa_graph_port port; /**< this graph port, linked to mix_port */
struct spa_graph_port mix_port; /**< port from the mixer */
struct spa_graph_node mix_node; /**< mixer node */