mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
add clock
Add a gstreamer pinos clock that reports the time at the server
This commit is contained in:
parent
0b380dd43e
commit
f86b50d202
11 changed files with 259 additions and 72 deletions
|
|
@ -64,6 +64,11 @@ typedef enum {
|
|||
PINOS_STREAM_MODE_RINGBUFFER = 1,
|
||||
} PinosStreamMode;
|
||||
|
||||
typedef struct {
|
||||
gint64 ticks;
|
||||
gint32 rate;
|
||||
} PinosTime;
|
||||
|
||||
/**
|
||||
* PinosStream:
|
||||
*
|
||||
|
|
@ -110,6 +115,9 @@ gboolean pinos_stream_start_allocation (PinosStream *stream,
|
|||
gboolean pinos_stream_start (PinosStream *stream);
|
||||
gboolean pinos_stream_stop (PinosStream *stream);
|
||||
|
||||
gboolean pinos_stream_get_time (PinosStream *stream,
|
||||
PinosTime *time);
|
||||
|
||||
guint pinos_stream_get_empty_buffer (PinosStream *stream);
|
||||
gboolean pinos_stream_recycle_buffer (PinosStream *stream,
|
||||
guint id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue