mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-11 03:01:57 -04:00
acp: make hard and soft volume limit
Make a hard volume limit property that is configured with the config and can never be changed. Make a soft volume limit property that can be changed at runtime. The used volume limit is a combination of the soft and hard limit.
This commit is contained in:
parent
1a534cd907
commit
64d3ed4710
4 changed files with 53 additions and 43 deletions
|
|
@ -76,7 +76,8 @@ struct pa_device_port {
|
|||
|
||||
pa_direction_t direction;
|
||||
int64_t latency_offset;
|
||||
float volume_range[2];
|
||||
float hard_volume_limit[2];
|
||||
float soft_volume_limit[2];
|
||||
|
||||
pa_proplist *proplist;
|
||||
pa_hashmap *profiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue