mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -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
|
|
@ -366,10 +366,12 @@ static int make_nodes(struct data *data)
|
|||
|
||||
spa_node_port_set_io(data->source,
|
||||
SPA_DIRECTION_OUTPUT, 0,
|
||||
data->type.io.Buffers, &data->source_sink_io[0]);
|
||||
data->type.io.Buffers,
|
||||
&data->source_sink_io[0], sizeof(data->source_sink_io[0]));
|
||||
spa_node_port_set_io(data->sink,
|
||||
SPA_DIRECTION_INPUT, 0,
|
||||
data->type.io.Buffers, &data->source_sink_io[0]);
|
||||
data->type.io.Buffers,
|
||||
&data->source_sink_io[0], sizeof(data->source_sink_io[0]));
|
||||
|
||||
spa_graph_node_init(&data->source_node);
|
||||
spa_graph_node_set_implementation(&data->source_node, data->source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue