summaryrefslogtreecommitdiffstats
path: root/polyp/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 12:48:47 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 12:48:47 +0000
commit9c4fd2a2c75b958c22442d2b83e75021bd096be5 (patch)
treea5af70f1907ec09af7ba282b845df15cffb43796 /polyp/sample.h
parentfa19d6ab7e2df69902d94a38cc03a183f6d97670 (diff)
add support for dB volumes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@166 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.h')
-rw-r--r--polyp/sample.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/sample.h b/polyp/sample.h
index 28ae51ea..ca462071 100644
--- a/polyp/sample.h
+++ b/polyp/sample.h
@@ -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