mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -250,7 +250,10 @@ struct global {
|
|||
struct global *src;
|
||||
struct global *dst;
|
||||
} link_info;
|
||||
/* for endpoint stream */
|
||||
struct {
|
||||
uint32_t endpoint_id;
|
||||
} stream_info;
|
||||
/* for endpoints */
|
||||
struct {
|
||||
uint32_t client_id;
|
||||
uint32_t monitor;
|
||||
|
|
@ -258,9 +261,9 @@ struct global {
|
|||
bool mute;
|
||||
uint32_t n_channel_volumes;
|
||||
float channel_volumes[SPA_AUDIO_MAX_CHANNELS];
|
||||
uint32_t endpoint_id;
|
||||
} stream_info;
|
||||
/* for endpoints */
|
||||
uint32_t device_id;
|
||||
} endpoint_info;
|
||||
/* for devices */
|
||||
struct {
|
||||
struct spa_list profiles;
|
||||
uint32_t n_profiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue