mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-08 10:06:23 -05:00
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:
parent
63281413bd
commit
e7b04bca2c
3 changed files with 385 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue