mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
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:
parent
fa19d6ab7e
commit
9c4fd2a2c7
5 changed files with 28 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue