mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
Implement control streams
spa_io_control_range -> spa_io_range Add helpers for sequence and control pod objects Implement control properties in audiotestsrc, update test example.
This commit is contained in:
parent
90c1a95eef
commit
c9526dc2bb
21 changed files with 289 additions and 272 deletions
|
|
@ -36,10 +36,11 @@ extern "C" {
|
|||
/** Different IO area types */
|
||||
enum spa_io_type {
|
||||
SPA_IO_Buffers,
|
||||
SPA_IO_ControlRange,
|
||||
SPA_IO_Range,
|
||||
SPA_IO_Clock,
|
||||
SPA_IO_Latency,
|
||||
SPA_IO_Events,
|
||||
SPA_IO_Control,
|
||||
SPA_IO_Notify,
|
||||
};
|
||||
|
||||
struct spa_io_buffers {
|
||||
|
|
@ -56,7 +57,7 @@ struct spa_io_buffers {
|
|||
#define SPA_IO_BUFFERS_INIT (struct spa_io_buffers) { SPA_STATUS_OK, SPA_ID_INVALID, }
|
||||
|
||||
/** A range, suitable for input ports that can suggest a range to output ports */
|
||||
struct spa_io_control_range {
|
||||
struct spa_io_range {
|
||||
uint64_t offset; /**< offset in range */
|
||||
uint32_t min_size; /**< minimum size of data */
|
||||
uint32_t max_size; /**< maximum size of data */
|
||||
|
|
@ -79,11 +80,12 @@ struct spa_io_latency {
|
|||
uint64_t max; /**< max latency */
|
||||
};
|
||||
|
||||
/** event stream */
|
||||
struct spa_io_events {
|
||||
/** control stream */
|
||||
struct spa_io_sequence {
|
||||
struct spa_pod_sequence sequence; /**< sequence of timed events */
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue