aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 06:47:56 -0700
committerChris Robinson <[email protected]>2019-09-11 06:47:56 -0700
commitbe0442c6207cc10fca079a803bbdd8985959b657 (patch)
treef454f679117428575d639e5b386104495889fe85 /al
parent388928f3aa1ecf1a4f930c27687e7d0d4a9fd824 (diff)
Avoid C-style casts in C++
Diffstat (limited to 'al')
-rw-r--r--al/state.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/al/state.cpp b/al/state.cpp
index 64cbae6e..cc5d8bac 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -371,36 +371,36 @@ START_API_FUNC
switch(pname)
{
case AL_DOPPLER_FACTOR:
- value = (ALint64SOFT)context->mDopplerFactor;
+ value = static_cast<ALint64SOFT>(context->mDopplerFactor);
break;
case AL_DOPPLER_VELOCITY:
- value = (ALint64SOFT)context->mDopplerVelocity;
+ value = static_cast<ALint64SOFT>(context->mDopplerVelocity);
break;
case AL_DISTANCE_MODEL:
- value = (ALint64SOFT)context->mDistanceModel;
+ value = static_cast<ALint64SOFT>(context->mDistanceModel);
break;
case AL_SPEED_OF_SOUND:
- value = (ALint64SOFT)context->mSpeedOfSound;
+ value = static_cast<ALint64SOFT>(context->mSpeedOfSound);
break;
case AL_DEFERRED_UPDATES_SOFT:
if(context->mDeferUpdates.load(std::memory_order_acquire))
- value = (ALint64SOFT)AL_TRUE;
+ value = AL_TRUE;
break;
case AL_GAIN_LIMIT_SOFT:
- value = (ALint64SOFT)(GAIN_MIX_MAX/context->mGainBoost);
+ value = static_cast<ALint64SOFT>(GAIN_MIX_MAX/context->mGainBoost);
break;
case AL_NUM_RESAMPLERS_SOFT:
- value = (ALint64SOFT)(ResamplerMax + 1);
+ value = static_cast<ALint64SOFT>(ResamplerMax + 1);
break;
case AL_DEFAULT_RESAMPLER_SOFT:
- value = (ALint64SOFT)ResamplerDefault;
+ value = static_cast<ALint64SOFT>(ResamplerDefault);
break;
default: