[PATCH 03/10] pulse: Add PA_VOLUME_HALF, PA_VOLUME_QUARTER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx>

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux