diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-09 23:29:51 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-15 01:10:00 +0530 |
commit | 179b291b18b9a7366955948ce0ddfb2e65a6b66e (patch) | |
tree | 5a5ed3dfd3ab8a8903968019b09fbfac0637fc51 /src/pulse/volume.h | |
parent | 3265424f271f15f334a299cc10086c0b9be34979 (diff) | |
download | pulseaudio-179b291b18b9a7366955948ce0ddfb2e65a6b66e.tar.gz |
volume: Decrease PA_VOLUME_MAX to be < 2^31
This decrease PA_VOLUME_MAX to be less than 2^31. We want to do this in
order to simplify signed arithmetic when applying software volume
scaling (since the volume can now always be safely treated as a signed
number).
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r-- | src/pulse/volume.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 2f71a62c9..98bbac14a 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -113,7 +113,7 @@ typedef uint32_t pa_volume_t; #define PA_VOLUME_MUTED ((pa_volume_t) 0U) /** Maximum valid volume we can store. \since 0.9.15 */ -#define PA_VOLUME_MAX ((pa_volume_t) UINT32_MAX-1) +#define PA_VOLUME_MAX ((pa_volume_t) UINT32_MAX/2) /** Special 'invalid' volume. \since 0.9.16 */ #define PA_VOLUME_INVALID ((pa_volume_t) UINT32_MAX) |