mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
media-session: keep track of all active routes
Keep track of active profile in default-routes so that we can restore the prefered routes later. Keep track of all active routes in an array. There can be more than one active route per direction. New routes will get their volume restored. Route changes will be saved.
This commit is contained in:
parent
b8bac95dad
commit
072d3a191c
2 changed files with 149 additions and 54 deletions
|
|
@ -79,12 +79,6 @@ struct device {
|
|||
uint32_t active_profile;
|
||||
};
|
||||
|
||||
struct find_data {
|
||||
struct impl *impl;
|
||||
const char *name;
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
static void remove_idle_timeout(struct impl *impl)
|
||||
{
|
||||
struct pw_loop *main_loop = pw_context_get_main_loop(impl->context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue