summaryrefslogtreecommitdiff
path: root/spa/plugins/audiotestsrc
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-10-23 12:31:41 +0200
committerWim Taymans <wtaymans@redhat.com>2018-10-23 12:31:41 +0200
commit66de372e9ae4e9308b494719b0f036bc76bfd075 (patch)
treea621ae4bb36315c010fb78048ae8b42c459b7c62 /spa/plugins/audiotestsrc
parenta121164df9a31639a2bb5932aaaaf1681ebaa6bb (diff)
add node set_io function
Also allow setting io areas on nodes. We need this to set the graph clock and period size on the nodes.
Diffstat (limited to 'spa/plugins/audiotestsrc')
-rw-r--r--spa/plugins/audiotestsrc/audiotestsrc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c
index 29a02995..dc9c1d5f 100644
--- a/spa/plugins/audiotestsrc/audiotestsrc.c
+++ b/spa/plugins/audiotestsrc/audiotestsrc.c
@@ -269,6 +269,11 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
return 0;
}
+static int impl_node_set_io(struct spa_node *node, uint32_t id, void *data, size_t size)
+{
+ return -ENOTSUP;
+}
+
#include "render.c"
static void set_timer(struct impl *this, bool enabled)
@@ -970,6 +975,7 @@ static const struct spa_node impl_node = {
&node_info,
impl_node_enum_params,
impl_node_set_param,
+ impl_node_set_io,
impl_node_send_command,
impl_node_set_callbacks,
impl_node_get_n_ports,