[pulseaudio-discuss] [PATCH 03/10] pulse: Add PA_VOLUME_HALF, PA_VOLUME_QUARTER
Peter Meerwald
pmeerw at pmeerw.net
Fri Mar 29 08:56:44 PDT 2013
From: Peter Meerwald <p.meerwald at bct-electronic.com>
PA_VOLUME_HALF is 0x8000 (== PA_VOLUME_NORM/2)
PA_VOLUME_QUARTER is 0x4000 (== PA_VOLUME_NORM/4)
used in remapping code
Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
src/pulse/volume.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/pulse/volume.h b/src/pulse/volume.h
index 324dc94..5b058e6 100644
--- a/src/pulse/volume.h
+++ b/src/pulse/volume.h
@@ -108,6 +108,8 @@ typedef uint32_t pa_volume_t;
/** Normal volume (100%, 0 dB) */
#define PA_VOLUME_NORM ((pa_volume_t) 0x10000U)
+#define PA_VOLUME_HALF ((pa_volume_t) 0x8000U)
+#define PA_VOLUME_QUARTER ((pa_volume_t) 0x4000U)
/** Muted (minimal valid) volume (0%, -inf dB) */
#define PA_VOLUME_MUTED ((pa_volume_t) 0U)
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list