stream: fix introspection of linked device

This commit is contained in:
Wim Taymans 2018-07-04 15:33:20 +02:00
parent 3cfbdc750a
commit 71d87c589d
4 changed files with 165 additions and 35 deletions

View file

@ -190,6 +190,10 @@ struct pa_mainloop {
int n_events;
};
#define PA_SUBSCRIPTION_MASK_DSP_SINK 0x1000U
#define PA_SUBSCRIPTION_MASK_DSP_SOURCE 0x2000U
#define PA_SUBSCRIPTION_MASK_DSP (PA_SUBSCRIPTION_MASK_DSP_SINK | PA_SUBSCRIPTION_MASK_DSP_SOURCE)
struct global {
struct spa_list link;
uint32_t id;
@ -206,6 +210,17 @@ struct global {
struct pw_proxy *proxy;
struct spa_hook proxy_listener;
struct spa_hook proxy_proxy_listener;
/* for links */
union {
struct {
struct global *src;
struct global *dst;
} link_info;
struct {
struct global *session;
} dsp_info;
};
};
struct pa_context {
@ -333,6 +348,7 @@ struct pa_stream {
struct pw_buffer *dequeued[MAX_BUFFERS];
struct spa_ringbuffer dequeued_ring;
size_t dequeued_size;
size_t maxsize;
struct spa_list pending;
struct pw_buffer *buffer;