aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-03 20:00:41 +0100
committerMax Kellermann <max@duempel.org>2015-01-03 20:00:41 +0100
commitf6495141833a5fa9abe18a244da998cae0830f01 (patch)
tree70dfc3e62cf5a8cf1c3fd81888ec710ef4caa326
parentafd31677dda7c36d4624634c4fc4465d4868c5c2 (diff)
downloadmpd-f6495141833a5fa9abe18a244da998cae0830f01.tar.gz
mpd-f6495141833a5fa9abe18a244da998cae0830f01.tar.xz
mpd-f6495141833a5fa9abe18a244da998cae0830f01.zip
output/openal: convert macro to constexpr
Diffstat (limited to '')
-rw-r--r--src/output/plugins/OpenALOutputPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx
index 6ed3682b9..c28250eb0 100644
--- a/src/output/plugins/OpenALOutputPlugin.cxx
+++ b/src/output/plugins/OpenALOutputPlugin.cxx
@@ -34,12 +34,12 @@
#include <OpenAL/alc.h>
#endif
-/* should be enough for buffer size = 2048 */
-#define NUM_BUFFERS 16
-
class OpenALOutput {
friend struct AudioOutputWrapper<OpenALOutput>;
+ /* should be enough for buffer size = 2048 */
+ static constexpr unsigned NUM_BUFFERS = 16;
+
AudioOutput base;
const char *device_name;