aboutsummaryrefslogtreecommitdiffstats
path: root/al
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 /al
parente880c04f321ec3244ac4987c9c7a865ccbda5a80 (diff)
Use an enum class for SpatializeMode
Diffstat (limited to 'al')
-rw-r--r--al/source.cpp2
-rw-r--r--al/source.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 08889ec0..e26ecfec 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -1990,7 +1990,7 @@ bool GetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
case AL_SOURCE_SPATIALIZE_SOFT:
CHECKSIZE(values, 1);
- values[0] = Source->mSpatialize;
+ values[0] = static_cast<int>(Source->mSpatialize);
return true;
/* 1x float/double */
diff --git a/al/source.h b/al/source.h
index a36a2a09..8417688a 100644
--- a/al/source.h
+++ b/al/source.h
@@ -56,7 +56,7 @@ struct ALsource {
DistanceModel mDistanceModel{DistanceModel::Default};
Resampler mResampler{ResamplerDefault};
DirectMode DirectChannels{DirectMode::Off};
- SpatializeMode mSpatialize{SpatializeAuto};
+ SpatializeMode mSpatialize{SpatializeMode::Auto};
bool DryGainHFAuto{true};
bool WetGainAuto{true};