summaryrefslogtreecommitdiffstats
path: root/src/pulse/volume.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-03 17:42:38 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-03 17:42:38 +0200
commit619ed8a82d05ec2c505600ed6937574739220400 (patch)
tree0a2b3e8dd60bd21c4c16fbb8defd6aa782111f3b /src/pulse/volume.h
parentbe77bcd9ad7e51e51cb3c84d2aed9bd13ddd0a27 (diff)
add new API call pa_cvolume_snprint_dB()
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r--src/pulse/volume.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h
index 4b2f3a76..d6eb6061 100644
--- a/src/pulse/volume.h
+++ b/src/pulse/volume.h
@@ -136,6 +136,16 @@ pa_cvolume* pa_cvolume_set(pa_cvolume *a, unsigned channels, pa_volume_t v);
/** Pretty print a volume structure */
char *pa_cvolume_snprint(char *s, size_t l, const pa_cvolume *c);
+/** Maximum length of the strings returned by
+ * pa_cvolume_snprint_dB(). Please note that this value can change with
+ * any release without warning and without being considered API or ABI
+ * breakage. You should not use this definition anywhere where it
+ * might become part of an ABI. \since 0.9.13 */
+#define PA_CVOLUME_SNPRINT_DB_MAX 448
+
+/** Pretty print a volume structure but show dB values. \since 0.9.13 */
+char *pa_cvolume_snprint_dB(char *s, size_t l, const pa_cvolume *c);
+
/** Return the average volume of all channels */
pa_volume_t pa_cvolume_avg(const pa_cvolume *a) PA_GCC_PURE;