aboutsummaryrefslogtreecommitdiffstats
path: root/al/state.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-10-21 16:39:21 -0700
committerChris Robinson <[email protected]>2020-10-21 16:39:21 -0700
commit3e62600ecc3c2f1be4da0d3e8166f5c67cc25fed (patch)
treea33bb31c8c8d53f96a2112c7f8edb91a190df5e6 /al/state.cpp
parentb8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (diff)
Replace some more macros with constexpr variables
Diffstat (limited to 'al/state.cpp')
-rw-r--r--al/state.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/al/state.cpp b/al/state.cpp
index dcc87972..ee05d3b9 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -214,7 +214,7 @@ START_API_FUNC
break;
case AL_GAIN_LIMIT_SOFT:
- if(GAIN_MIX_MAX/context->mGainBoost != 0.0f)
+ if(GainMixMax/context->mGainBoost != 0.0f)
value = AL_TRUE;
break;
@@ -267,7 +267,7 @@ START_API_FUNC
break;
case AL_GAIN_LIMIT_SOFT:
- value = ALdouble{GAIN_MIX_MAX}/context->mGainBoost;
+ value = ALdouble{GainMixMax}/context->mGainBoost;
break;
case AL_NUM_RESAMPLERS_SOFT:
@@ -318,7 +318,7 @@ START_API_FUNC
break;
case AL_GAIN_LIMIT_SOFT:
- value = GAIN_MIX_MAX/context->mGainBoost;
+ value = GainMixMax/context->mGainBoost;
break;
case AL_NUM_RESAMPLERS_SOFT:
@@ -369,7 +369,7 @@ START_API_FUNC
break;
case AL_GAIN_LIMIT_SOFT:
- value = static_cast<ALint>(GAIN_MIX_MAX/context->mGainBoost);
+ value = static_cast<ALint>(GainMixMax/context->mGainBoost);
break;
case AL_NUM_RESAMPLERS_SOFT:
@@ -420,7 +420,7 @@ START_API_FUNC
break;
case AL_GAIN_LIMIT_SOFT:
- value = static_cast<ALint64SOFT>(GAIN_MIX_MAX/context->mGainBoost);
+ value = static_cast<ALint64SOFT>(GainMixMax/context->mGainBoost);
break;
case AL_NUM_RESAMPLERS_SOFT: