From f6495141833a5fa9abe18a244da998cae0830f01 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jan 2015 20:00:41 +0100 Subject: output/openal: convert macro to constexpr --- src/output/plugins/OpenALOutputPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 #endif -/* should be enough for buffer size = 2048 */ -#define NUM_BUFFERS 16 - class OpenALOutput { friend struct AudioOutputWrapper; + /* should be enough for buffer size = 2048 */ + static constexpr unsigned NUM_BUFFERS = 16; + AudioOutput base; const char *device_name; -- cgit v1.2.3