summaryrefslogtreecommitdiffstats
path: root/polyp/sample.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 13:04:03 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 13:04:03 +0000
commit0205fc57bbfdf03e5cdd5eb3c908f5531c4fdbf1 (patch)
tree26074ef05a6212a65641efb3fc5531a368d824e8 /polyp/sample.h
parent63c76bd0691a4b4b1d505ad6eac87af7c296cdab (diff)
add PA_MININFTY
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@169 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.h')
-rw-r--r--polyp/sample.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/polyp/sample.h b/polyp/sample.h
index 95844301..4b28780d 100644
--- a/polyp/sample.h
+++ b/polyp/sample.h
@@ -24,6 +24,7 @@
#include <inttypes.h>
#include <sys/types.h>
+#include <math.h>
#include "cdecl.h"
@@ -108,6 +109,13 @@ 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);
+#ifdef INFINITY
+#define PA_DECIBEL_MININFTY -INFINITY
+#else
+/** This value is used as minus infinity when using pa_volume_{to,from}_dB(). \since 0.4 */
+#define PA_DECIBEL_MININFTY -200
+#endif
+
PA_C_DECL_END
#endif