mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-12 03:01:58 -04:00
acp: add min and max volume properties
This way, the min/max volume can be updated and saved in the same way as the volume is updated. Also add support for this in audioconvert channelmix.
This commit is contained in:
parent
fb74ab9054
commit
1a534cd907
6 changed files with 71 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ int acp_device_get_soft_volume(struct acp_device *dev, float *volume, uint32_t n
|
|||
int acp_device_get_volume(struct acp_device *dev, float *volume, uint32_t n_volume);
|
||||
int acp_device_set_mute(struct acp_device *dev, bool mute);
|
||||
int acp_device_get_mute(struct acp_device *dev, bool *mute);
|
||||
int acp_device_get_volume_limit(struct acp_device *dev, float *min, float *max);
|
||||
int acp_device_set_volume_limit(struct acp_device *dev, float min, float max);
|
||||
|
||||
typedef void (*acp_log_func) (void *data,
|
||||
int level, const char *file, int line, const char *func,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue