aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/converter.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-27 10:16:36 -0700
committerChris Robinson <[email protected]>2017-08-27 10:16:36 -0700
commita4d357de06b3860f49f2f6f70899d825b920947b (patch)
tree3532665177753d3f6d6cb8a5c6a9b702a48d403a /Alc/converter.c
parent773d4664ff8f31837374164b64b992b86fcc80f7 (diff)
Add a higher quality bsinc resampler using 24 sample points
This improves the transition width, allowing more of the higher frequencies remain audible. It would be preferrable to have an upper limit of 32 points instead of 48, to reduce the overall table size and the CPU cost for down- sampling.
Diffstat (limited to 'Alc/converter.c')
-rw-r--r--Alc/converter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/converter.c b/Alc/converter.c
index fa9928c2..913a3ed3 100644
--- a/Alc/converter.c
+++ b/Alc/converter.c
@@ -33,7 +33,7 @@ SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType
else
{
/* TODO: Allow other resamplers. */
- BsincPrepare(converter->mIncrement, &converter->mState.bsinc);
+ BsincPrepare(converter->mIncrement, &converter->mState.bsinc, &bsinc12);
converter->mResample = SelectResampler(BSinc12Resampler);
}
END_MIXER_MODE();