From bfe020e06c2ba0671cdd1dacd9999c986c3168d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 22 Dec 2013 17:36:21 +0100 Subject: pcm/Volume: make PCM_VOLUME_1 a "constexpr" --- src/pcm/PcmVolume.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/pcm/PcmVolume.hxx') 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 #include -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; -- cgit v1.2.3