aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmVolume.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pcm/PcmVolume.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pcm/PcmVolume.hxx b/src/pcm/PcmVolume.hxx
index 8cd82acf7..502fca9ec 100644
--- a/src/pcm/PcmVolume.hxx
+++ b/src/pcm/PcmVolume.hxx
@@ -26,10 +26,11 @@
#include <stdint.h>
#include <stddef.h>
-enum {
- /** this value means "100% volume" */
- PCM_VOLUME_1 = 1024,
-};
+/**
+ * This value means "100% volume".
+ */
+static constexpr unsigned PCM_VOLUME_1 = 1024;
+static constexpr int PCM_VOLUME_1S = PCM_VOLUME_1;
struct AudioFormat;