diff options
author | Chris Robinson <[email protected]> | 2019-09-22 21:19:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-22 21:19:19 -0700 |
commit | 24db8a3f4bdbd787c23ac6e2ec78c2bafed81f1f (patch) | |
tree | bd55bdfda7874eb56eb444fb888e896895057d63 /al/source.cpp | |
parent | 95996effaf04c87b7091c904e6545bc1e5e25aee (diff) |
Make the resampler type an enum class
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp index 7eda4fb6..3aaaaf90 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1295,7 +1295,7 @@ bool SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a case AL_SOURCE_RESAMPLER_SOFT: CHECKSIZE(values, 1); - CHECKVAL(values[0] >= 0 && values[0] <= ResamplerMax); + CHECKVAL(values[0] >= 0 && values[0] <= static_cast<int>(Resampler::Max)); Source->mResampler = static_cast<Resampler>(values[0]); return UpdateSourceProps(Source, Context); @@ -1836,7 +1836,7 @@ bool GetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a case AL_SOURCE_RESAMPLER_SOFT: CHECKSIZE(values, 1); - values[0] = Source->mResampler; + values[0] = static_cast<int>(Source->mResampler); return true; case AL_SOURCE_SPATIALIZE_SOFT: |