mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
pulse-server: Surface volume control flags as properties
We could udpate the libpulse protocol to add more flag types, but this seems simpler than requiring a protocol and ABI update.
This commit is contained in:
parent
7b6f5968f7
commit
84a8e1aa43
3 changed files with 55 additions and 2 deletions
|
|
@ -32,6 +32,15 @@ struct volume_info {
|
|||
uint32_t steps;
|
||||
#define VOLUME_HW_VOLUME (1<<0)
|
||||
#define VOLUME_HW_MUTE (1<<1)
|
||||
#define VOLUME_READ (1<<2)
|
||||
#define VOLUME_WRITE (1<<3)
|
||||
#define VOLUME_UPDOWN (1<<4)
|
||||
#define VOLUME_READ_MUTE (1<<5)
|
||||
#define VOLUME_WRITE_MUTE (1<<6)
|
||||
#define VOLUME_TOGGLE_MUTE (1<<7)
|
||||
#define VOLUME_READ_BALANCE (1<<8)
|
||||
#define VOLUME_WRITE_BALANCE (1<<9)
|
||||
#define VOLUME_CONTROL_MASK (0x01FC)
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue