client-node: pass position around

Pass the position from server to clients
Implement current time in stream.c using the position info
This commit is contained in:
Wim Taymans 2018-06-07 11:01:20 +02:00
parent 3d25e254ef
commit e5629b23f3
6 changed files with 34 additions and 31 deletions

View file

@ -48,10 +48,7 @@ struct pw_client_node_position {
#define PW_VERSION_CLIENT_NODE_POSITION 0
uint32_t version;
uint32_t seq1, seq2; /**< valid contents when equal */
uint64_t nsec; /**< time in nanoseconds */
struct spa_fraction rate; /**< rate of the clock */
uint32_t position; /**< current position expressed in rate */
uint32_t duration; /**< duration of cycle expressed in rate */
/* position info follows */
};
#define PW_CLIENT_NODE_PROXY_METHOD_DONE 0