mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
More session manager work
pulseaudio card is mapped to device pulseaudio sink/source is mapped to an endpoint prepare to map streams to card profiles Add Route param to implement the endpoint routing later (ports) Create an alsa endpoint for each device Create one stream for each endpoint (Playback/Capture) Implement create_link on the endpoint. The idea is to call create link on the peer endpoint to complete the link. Remove create_link on the session. Add stream-monitor to turn pw_stream nodes into endpoints Add a policy manager that tries to link endpoints Use enum pw_direction for the endpoint direction. We can use the media_class to determine if this is a pw_stream or not but it should not really matter, you can link any output to any input. Add autoconnect property for endpoints to make the policy connect.
This commit is contained in:
parent
edd011605d
commit
3f3dfbc67e
27 changed files with 2338 additions and 439 deletions
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
int sm_monitor_start(struct pw_remote *remote);
|
||||
int sm_policy_start(struct pw_remote *remote);
|
||||
int sm_policy_ep_start(struct pw_remote *remote);
|
||||
|
||||
struct impl {
|
||||
struct pw_main_loop *loop;
|
||||
|
|
@ -115,7 +116,8 @@ int main(int argc, char *argv[])
|
|||
pw_module_load(impl.core, "libpipewire-module-session-manager", NULL, NULL);
|
||||
|
||||
sm_monitor_start(impl.monitor_remote);
|
||||
sm_policy_start(impl.policy_remote);
|
||||
// sm_policy_start(impl.policy_remote);
|
||||
sm_policy_ep_start(impl.policy_remote);
|
||||
|
||||
if ((res = pw_remote_connect(impl.monitor_remote)) < 0)
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue