pulse-server: Implement module-loopback

Implements all modargs other than rate adjustment and max latency
related ones, which do not make sense in our context.

Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/543
This commit is contained in:
Arun Raghavan 2021-03-31 18:18:08 -04:00
parent 63281413bd
commit e7b04bca2c
3 changed files with 385 additions and 5 deletions

View file

@ -283,6 +283,9 @@ struct impl {
struct stats stat;
};
/* Functions that modules can use */
static void broadcast_subscribe_event(struct impl *impl, uint32_t mask, uint32_t event, uint32_t id);
#include "collect.c"
#include "module.c"
#include "message-handler.c"
@ -5232,11 +5235,6 @@ static int do_unload_module(struct client *client, uint32_t command, uint32_t ta
module_unload(client, module);
broadcast_subscribe_event(impl,
SUBSCRIPTION_MASK_MODULE,
SUBSCRIPTION_EVENT_REMOVE | SUBSCRIPTION_EVENT_MODULE,
module_idx);
return reply_simple_ack(client, tag);
}