summaryrefslogtreecommitdiff
path: root/src/pcm/Volume.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-07-05 18:26:26 +0200
committerMax Kellermann <max@musicpd.org>2019-07-05 18:26:26 +0200
commit06fbbe2d7b643b54da70abb911e0a3c5a4d5671a (patch)
tree51ad0b117068922f3724629d77acad88a8d481c1 /src/pcm/Volume.hxx
parent21d91cb1d16b4dd71f0d0cb74280411404cad65e (diff)
pcm/Volume: calculate PCM_VOLUME_1
Diffstat (limited to 'src/pcm/Volume.hxx')
-rw-r--r--src/pcm/Volume.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/Volume.hxx b/src/pcm/Volume.hxx
index 3d03773a2..53348e591 100644
--- a/src/pcm/Volume.hxx
+++ b/src/pcm/Volume.hxx
@@ -38,7 +38,7 @@ static constexpr unsigned PCM_VOLUME_BITS = 10;
/**
* This value means "100% volume".
*/
-static constexpr unsigned PCM_VOLUME_1 = 1024;
+static constexpr unsigned PCM_VOLUME_1 = 1u << PCM_VOLUME_BITS;
static constexpr int PCM_VOLUME_1S = PCM_VOLUME_1;
/**