filter-chain: export notify controls

This commit is contained in:
bhack 2026-05-10 04:36:50 +02:00
parent 08d4e319cf
commit f8725009ba
6 changed files with 1618 additions and 11 deletions

View file

@ -64,7 +64,7 @@ struct spa_filter_graph_events {
};
struct spa_filter_graph_methods {
#define SPA_VERSION_FILTER_GRAPH_METHODS 0
#define SPA_VERSION_FILTER_GRAPH_METHODS 1
uint32_t version;
int (*add_listener) (void *object,
@ -83,6 +83,10 @@ struct spa_filter_graph_methods {
int (*reset) (void *object);
int (*process) (void *object, const void *in[], void *out[], uint32_t n_samples);
int (*enum_notify_info) (void *object, uint32_t idx, struct spa_pod_builder *b,
struct spa_pod **param);
int (*get_notify) (void *object, struct spa_pod_builder *b, struct spa_pod **props);
};
SPA_API_FILTER_GRAPH int spa_filter_graph_add_listener(struct spa_filter_graph *object,
@ -138,6 +142,19 @@ SPA_API_FILTER_GRAPH int spa_filter_graph_process(struct spa_filter_graph *objec
spa_filter_graph, &object->iface, process, 0, in, out, n_samples);
}
SPA_API_FILTER_GRAPH int spa_filter_graph_enum_notify_info(struct spa_filter_graph *object,
uint32_t idx, struct spa_pod_builder *b, struct spa_pod **param)
{
return spa_api_method_r(int, -ENOTSUP,
spa_filter_graph, &object->iface, enum_notify_info, 1, idx, b, param);
}
SPA_API_FILTER_GRAPH int spa_filter_graph_get_notify(struct spa_filter_graph *object,
struct spa_pod_builder *b, struct spa_pod **props)
{
return spa_api_method_r(int, -ENOTSUP,
spa_filter_graph, &object->iface, get_notify, 1, b, props);
}
/**
* \}
*/
@ -147,4 +164,3 @@ SPA_API_FILTER_GRAPH int spa_filter_graph_process(struct spa_filter_graph *objec
#endif
#endif /* SPA_FILTER_GRAPH_H */