mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
io: add offset for clock times
Add an offset to apply to the clock time before we can compare to the segment values. This way we can keep the segment start independent of the clock values and we only need to adjust the offset when paused. It's like the base_time in GStreamer to calculate the running time.
This commit is contained in:
parent
2805713da3
commit
0a15e1f804
4 changed files with 31 additions and 19 deletions
|
|
@ -381,8 +381,10 @@ struct pw_node_activation {
|
|||
#define PW_NODE_ACTIVATION_UPDATE_STATE (1<<0)
|
||||
#define PW_NODE_ACTIVATION_UPDATE_SEGMENT (1<<1)
|
||||
#define PW_NODE_ACTIVATION_UPDATE_REPOSITION (1<<2)
|
||||
#define PW_NODE_ACTIVATION_UPDATE_FLUSH (1<<3) /* flush out current segments and immediately
|
||||
* start the new one */
|
||||
uint32_t change_mask;
|
||||
enum spa_io_position_state state;
|
||||
enum spa_io_position_state state; /* when change_mask & PW_NODE_ACTIVATION_UPDATE_STATE */
|
||||
struct spa_io_segment segment; /* update for the extra segment info
|
||||
* fields. When REPOSITION update, the segment
|
||||
* position field will contain the desired
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue