mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -211,12 +211,12 @@ static int impl_get_port_ids(struct spa_node *node,
|
|||
}
|
||||
|
||||
static int impl_port_set_io(struct spa_node *node, enum spa_direction direction, uint32_t port_id,
|
||||
uint32_t id, void *io)
|
||||
uint32_t id, void *data, size_t size)
|
||||
{
|
||||
struct data *d = SPA_CONTAINER_OF(node, struct data, impl_node);
|
||||
|
||||
if (id == d->t->io.Buffers)
|
||||
d->io = io;
|
||||
d->io = data;
|
||||
else
|
||||
return -ENOENT;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue