diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-19 00:56:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-19 00:56:16 +0200 |
commit | d634555a3e3e2e35d95da6bca9464c02627d02fd (patch) | |
tree | 2ce31192ddf448590bae22691f065b716728d092 /src/pulse/volume.h | |
parent | 8f928b2e572cd7bf26517afddd62ceecb78edfdc (diff) | |
download | pulseaudio-d634555a3e3e2e35d95da6bca9464c02627d02fd.tar.gz |
volume: introduce pa_cvolume_min() and pa_cvolume_min_mask()
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r-- | src/pulse/volume.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 3881da2f9..349ca49f4 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -195,6 +195,16 @@ pa_volume_t pa_cvolume_max(const pa_cvolume *a) PA_GCC_PURE; * \since 0.9.16 */ pa_volume_t pa_cvolume_max_mask(const pa_cvolume *a, const pa_channel_map *cm, pa_channel_position_mask_t mask) PA_GCC_PURE; +/** Return the minimum volume of all channels. \since 0.9.16 */ +pa_volume_t pa_cvolume_min(const pa_cvolume *a) PA_GCC_PURE; + +/** Return the minimum volume of all channels that are included in the + * specified channel map with the specified channel position mask. If + * cm is NULL this call is identical to pa_cvolume_min(). If no + * channel is selected the returned value will be PA_VOLUME_MUTED. + * \since 0.9.16 */ +pa_volume_t pa_cvolume_min_mask(const pa_cvolume *a, const pa_channel_map *cm, pa_channel_position_mask_t mask) PA_GCC_PURE; + /** Return TRUE when the passed cvolume structure is valid, FALSE otherwise */ int pa_cvolume_valid(const pa_cvolume *v) PA_GCC_PURE; |