summaryrefslogtreecommitdiffstats
path: root/polyp/sample.h
diff options
context:
space:
mode:
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