mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: list NETWORK flag on devices
Mark network sinks and sources with node.network.
This commit is contained in:
parent
d6c1479ba0
commit
8c346ab3a7
6 changed files with 13 additions and 0 deletions
|
|
@ -3493,6 +3493,8 @@ static int fill_sink_info(struct client *client, struct message *m,
|
|||
flags = SINK_LATENCY | SINK_DYNAMIC_LATENCY | SINK_DECIBEL_VOLUME;
|
||||
if ((str = spa_dict_lookup(info->props, PW_KEY_DEVICE_API)) != NULL)
|
||||
flags |= SINK_HARDWARE;
|
||||
if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NETWORK)) != NULL)
|
||||
flags |= SINK_NETWORK;
|
||||
if (SPA_FLAG_IS_SET(dev_info.volume_info.flags, VOLUME_HW_VOLUME))
|
||||
flags |= SINK_HW_VOLUME_CTRL;
|
||||
if (SPA_FLAG_IS_SET(dev_info.volume_info.flags, VOLUME_HW_MUTE))
|
||||
|
|
@ -3675,6 +3677,8 @@ static int fill_source_info(struct client *client, struct message *m,
|
|||
flags = SOURCE_LATENCY | SOURCE_DYNAMIC_LATENCY | SOURCE_DECIBEL_VOLUME;
|
||||
if ((str = spa_dict_lookup(info->props, PW_KEY_DEVICE_API)) != NULL)
|
||||
flags |= SOURCE_HARDWARE;
|
||||
if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NETWORK)) != NULL)
|
||||
flags |= SOURCE_NETWORK;
|
||||
if (SPA_FLAG_IS_SET(dev_info.volume_info.flags, VOLUME_HW_VOLUME))
|
||||
flags |= SOURCE_HW_VOLUME_CTRL;
|
||||
if (SPA_FLAG_IS_SET(dev_info.volume_info.flags, VOLUME_HW_MUTE))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue