mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
rename HAVE/NEED_BUFFER -> HAVE/NEED_DATA
It is more generic and works with control-only ports as well
This commit is contained in:
parent
d648ea4ad3
commit
8b85cc225e
40 changed files with 176 additions and 176 deletions
|
|
@ -54,8 +54,8 @@ enum spa_io_type {
|
|||
|
||||
struct spa_io_buffers {
|
||||
#define SPA_STATUS_OK 0
|
||||
#define SPA_STATUS_NEED_BUFFER (1<<0)
|
||||
#define SPA_STATUS_HAVE_BUFFER (1<<1)
|
||||
#define SPA_STATUS_NEED_DATA (1<<0)
|
||||
#define SPA_STATUS_HAVE_DATA (1<<1)
|
||||
#define SPA_STATUS_STOPPED (1<<2)
|
||||
int32_t status; /**< the status code */
|
||||
uint32_t buffer_id; /**< a buffer id */
|
||||
|
|
|
|||
|
|
@ -536,7 +536,7 @@ struct spa_node_methods {
|
|||
* the port.
|
||||
*
|
||||
* For output ports, all buffers will be queued in the port. When process
|
||||
* returns SPA_STATUS_HAVE_BUFFER, buffers are available in one or more
|
||||
* returns SPA_STATUS_HAVE_DATA, buffers are available in one or more
|
||||
* of the spa_io_buffers areas.
|
||||
*
|
||||
* When a buffer can be reused, port_reuse_buffer() should be called or the
|
||||
|
|
@ -608,17 +608,17 @@ struct spa_node_methods {
|
|||
/**
|
||||
* Process the node
|
||||
*
|
||||
* Output io areas with SPA_STATUS_NEED_BUFFER will recycle the
|
||||
* Output io areas with SPA_STATUS_NEED_DATA will recycle the
|
||||
* buffers if any.
|
||||
*
|
||||
* Input areas with SPA_STATUS_HAVE_BUFFER are consumed if possible
|
||||
* and the status is set to SPA_STATUS_NEED_BUFFER or SPA_STATUS_OK.
|
||||
* Input areas with SPA_STATUS_HAVE_DATA are consumed if possible
|
||||
* and the status is set to SPA_STATUS_NEED_DATA or SPA_STATUS_OK.
|
||||
*
|
||||
* When the node has new output buffers, the SPA_STATUS_HAVE_BUFFER
|
||||
* When the node has new output buffers, the SPA_STATUS_HAVE_DATA
|
||||
* bit will be set.
|
||||
*
|
||||
* When the node can accept new input in the next cycle, the
|
||||
* SPA_STATUS_NEED_BUFFER bit will be set.
|
||||
* SPA_STATUS_NEED_DATA bit will be set.
|
||||
*/
|
||||
int (*process) (void *object);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue