add support for dB volumes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@166 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-09-01 12:48:47 +00:00
parent fa19d6ab7e
commit 9c4fd2a2c7
5 changed files with 28 additions and 6 deletions

View file

@ -102,6 +102,12 @@ typedef uint32_t pa_volume_t;
/** Multiply two volumes specifications, return the result. This uses PA_VOLUME_NORM as neutral element of multiplication. */
pa_volume_t pa_volume_multiply(pa_volume_t a, pa_volume_t b);
/** Convert volume from decibel to linear level */
pa_volume_t pa_volume_from_dB(double f);
/** Convert volume from linear level to decibel */
double pa_volume_to_dB(pa_volume_t v);
PA_C_DECL_END
#endif