aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-21 09:10:32 -0700
committerChris Robinson <[email protected]>2020-05-21 09:10:32 -0700
commit5bbbe8341ee54e8bfeb3817d332a8413c8c7eb81 (patch)
treeedb8ec4665deca2ab5f0a2b621c64f392ecbc33a /alc/alu.cpp
parente880c04f321ec3244ac4987c9c7a865ccbda5a80 (diff)
Use an enum class for SpatializeMode
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index b2e287a9..e6ff37ba 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1575,8 +1575,8 @@ void CalcSourceParams(Voice *voice, ALCcontext *context, bool force)
if((voice->mProps.DirectChannels != DirectMode::Off && voice->mFmtChannels != FmtMono
&& voice->mFmtChannels != FmtBFormat2D && voice->mFmtChannels != FmtBFormat3D)
- || voice->mProps.mSpatializeMode == SpatializeOff
- || (voice->mProps.mSpatializeMode == SpatializeAuto && voice->mFmtChannels != FmtMono))
+ || voice->mProps.mSpatializeMode==SpatializeMode::Off
+ || (voice->mProps.mSpatializeMode==SpatializeMode::Auto && voice->mFmtChannels != FmtMono))
CalcNonAttnSourceParams(voice, &voice->mProps, context);
else
CalcAttnSourceParams(voice, &voice->mProps, context);