diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-27 00:47:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-27 00:47:07 +0100 |
commit | 4e31e00b63117f36df6b8ed4850e7ad6264e3da7 (patch) | |
tree | 5c92e42cbcb414bc57d3325a0152e9f520c3ea11 /src/pulse/volume.h | |
parent | e52c5ea68a9c3bf6e7c4b30cb6c2d4706f214cd3 (diff) |
implement pa_cvolume_scale()
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r-- | src/pulse/volume.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 38da5dfc..c8b73f4a 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -244,9 +244,14 @@ float pa_cvolume_get_balance(const pa_channel_map *map, const pa_cvolume *v) PA_ * operation might not be reversable! Also, after this call * pa_cvolume_get_balance() is not guaranteed to actually return the * requested balance (e.g. when the input volume was zero anyway for - * all channels)- \since 0.9.15 */ + * all channels) \since 0.9.15 */ pa_cvolume* pa_cvolume_set_balance(const pa_channel_map *map, pa_cvolume *v, float new_balance); +/** Scale the passed pa_cvolume structure so that the maximum volume + * of all channels equals max. The proportions between the channel + * volumes are kept. \since 0.9.15 */ +pa_cvolume* pa_cvolume_scale(pa_cvolume *v, pa_volume_t max); + PA_C_DECL_END #endif |