mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-29 21:37:54 -04:00
Merge branch 'mini-eq/export-notify-controls' into 'master'
filter-chain: export notify controls See merge request pipewire/pipewire!2823
This commit is contained in:
commit
b8117cb7a7
6 changed files with 1618 additions and 11 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue