mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-30 11:08:55 -05:00
Add control properties to audiotestsrc
Add control properties to audiotestsrc for frequency and volume and add a test program. Add size parameter to set_io for additional checks and to make it easy to know how much control data we can write.
This commit is contained in:
parent
8efea3e1ea
commit
a092b9312a
28 changed files with 774 additions and 64 deletions
|
|
@ -432,16 +432,18 @@ struct spa_node {
|
|||
* \param port_id a port id
|
||||
* \param id the id of the io area, the available ids can be
|
||||
* enumerated with the port parameters.
|
||||
* \param io a io area memory
|
||||
* \param data a io area memory
|
||||
* \param size the size of \a data
|
||||
* \return 0 on success
|
||||
* -EINVAL when node is NULL the port is not valid
|
||||
* -ENOENT when \id is unknown
|
||||
* -EINVAL when invalid input is given
|
||||
* -ENOENT when \a id is unknown
|
||||
* -ENOSPC when \a size is too small
|
||||
*/
|
||||
int (*port_set_io) (struct spa_node *node,
|
||||
enum spa_direction direction,
|
||||
uint32_t port_id,
|
||||
uint32_t id,
|
||||
void *io);
|
||||
void *data, size_t size);
|
||||
|
||||
/**
|
||||
* Tell an output port to reuse a buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue