aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-28 01:58:29 -0700
committerChris Robinson <[email protected]>2019-09-28 01:58:29 -0700
commit882b4acae80f41547a9e16b7def02a972842c857 (patch)
tree3c4474c01bcfc33ef2973f06adb4edca6ea8b5a0 /alc/converter.cpp
parent00d5356b96d29775653bc6816fafff9cc94ef3ec (diff)
Add "fast" variants for the bsinc resamplers
This simply omits the scale factor from the filter, similar to how up-sampling does. The consequence of this is less smooth transitions when ramping the pitch while down-sampling, but otherwise behaves fine.
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp
index b0efb839..aff1c353 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 == Resampler::BSinc24)
+ if(resampler == Resampler::BSinc24 || resampler == Resampler::FastBSinc24)
BsincPrepare(converter->mIncrement, &converter->mState.bsinc, &bsinc24);
- else if(resampler == Resampler::BSinc12)
+ else if(resampler == Resampler::BSinc12 || resampler == Resampler::FastBSinc12)
BsincPrepare(converter->mIncrement, &converter->mState.bsinc, &bsinc12);
converter->mResample = SelectResampler(resampler, converter->mIncrement);
}