Commit 2dc4b94b authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Define constants in cpp

Should fix build #2

Reviewed-By: drosca, fvogt
parent a7a9b2d5
......@@ -42,6 +42,10 @@ namespace QPulseAudio
Context* Context::s_context = nullptr;
const qint64 Context::NormalVolume = PA_VOLUME_NORM;
const qint64 Context::MinimalVolume = 0;
const qint64 Context::MaximalVolume = (PA_VOLUME_NORM / 100.0) * 150;
static bool isGoodState(int eol)
{
if (eol < 0) {
......
......@@ -47,9 +47,9 @@ public:
static Context *instance();
static const qint64 NormalVolume = PA_VOLUME_NORM;
static const qint64 MinimalVolume = 0;
static const qint64 MaximalVolume = (PA_VOLUME_NORM / 100.0) * 150;
static const qint64 NormalVolume;
static const qint64 MinimalVolume;
static const qint64 MaximalVolume;
void ref();
void unref();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment