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 /alc/converter.cpp | |
parent | 95996effaf04c87b7091c904e6545bc1e5e25aee (diff) |
Make the resampler type an enum class
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r-- | alc/converter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp index 2ad2ac3b..6622a997 100644 --- a/alc/converter.cpp +++ b/alc/converter.cpp @@ -167,9 +167,9 @@ SampleConverterPtr CreateSampleConverter(DevFmtType srcType, DevFmtType dstType, converter->mResample = Resample_<CopyTag,CTag>; else { - if(resampler == BSinc24Resampler) + if(resampler == Resampler::BSinc24) BsincPrepare(converter->mIncrement, &converter->mState.bsinc, &bsinc24); - else if(resampler == BSinc12Resampler) + else if(resampler == Resampler::BSinc12) BsincPrepare(converter->mIncrement, &converter->mState.bsinc, &bsinc12); converter->mResample = SelectResampler(resampler); } |