mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pod: add sequence
A sequence is a list of timed events.
This commit is contained in:
parent
47086cd9ee
commit
f5f9acf84e
1 changed files with 21 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ enum spa_pod_type {
|
|||
SPA_POD_TYPE_ARRAY,
|
||||
SPA_POD_TYPE_STRUCT,
|
||||
SPA_POD_TYPE_OBJECT,
|
||||
SPA_POD_TYPE_SEQUENCE,
|
||||
|
||||
SPA_POD_TYPE_POINTER,
|
||||
SPA_POD_TYPE_FD,
|
||||
|
|
@ -229,6 +230,26 @@ struct spa_pod_prop {
|
|||
struct spa_pod_prop_body body;
|
||||
};
|
||||
|
||||
/* events can be inside an event array and mark timed values */
|
||||
struct spa_pod_event {
|
||||
uint64_t offset;
|
||||
struct spa_pod value;
|
||||
/* value contents follow */
|
||||
};
|
||||
|
||||
struct spa_pod_sequence_body {
|
||||
uint32_t unit;
|
||||
uint32_t pad;
|
||||
/* array of struct spa_pod_event follows */
|
||||
};
|
||||
|
||||
/** a sequence of timed events */
|
||||
struct spa_pod_sequence {
|
||||
struct spa_pod pod;
|
||||
struct spa_pod_sequence_body body;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue