diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-24 00:48:02 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-24 00:48:02 +0000 |
commit | da45617efc5e3be26d6410857a730c94b32fe24b (patch) | |
tree | ce1d702c60ae39c26c20e2987d03ed6046ec9ebb /polyp/sample.h | |
parent | a6471e26022a7eada70dd128c51f0fa593718c5d (diff) |
add user volume API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@255 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.h')
-rw-r--r-- | polyp/sample.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/sample.h b/polyp/sample.h index 7e810386..4ab0b565 100644 --- a/polyp/sample.h +++ b/polyp/sample.h @@ -110,6 +110,12 @@ pa_volume_t pa_volume_from_dB(double f); /** Convert volume from linear level to decibel. \since 0.4 */ double pa_volume_to_dB(pa_volume_t v); +/** Convert volume to scaled value understandable by the user (between 0 and 1). \since 0.6 */ +double pa_volume_to_user(pa_volume_t v); + +/** Convert user volume to polypaudio volume. \since 0.6 */ +pa_volume_t pa_volume_from_user(double v); + #ifdef INFINITY #define PA_DECIBEL_MININFTY (-INFINITY) #else |