diff options
author | Chris Robinson <[email protected]> | 2020-05-21 09:10:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-21 09:10:32 -0700 |
commit | 5bbbe8341ee54e8bfeb3817d332a8413c8c7eb81 (patch) | |
tree | edb8ec4665deca2ab5f0a2b621c64f392ecbc33a /al | |
parent | e880c04f321ec3244ac4987c9c7a865ccbda5a80 (diff) |
Use an enum class for SpatializeMode
Diffstat (limited to 'al')
-rw-r--r-- | al/source.cpp | 2 | ||||
-rw-r--r-- | al/source.h | 2 |
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}; |