aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-27 23:52:16 -0700
committerChris Robinson <[email protected]>2015-09-27 23:57:25 -0700
commitab6622a8d6912fa6ff8da9caa3fcaf96047ca14a (patch)
treea872017f199f85f55b55d21dcb939f96aad70077 /Alc/ALc.c
parent3e60b1898943c26d817aef8d31466c1fee5aa83b (diff)
Replace the cubic resampler with a 4-point sinc/lanczos filter
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 20787101..fcb6504b 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1009,14 +1009,18 @@ static void alc_initconfig(void)
DefaultResampler = PointResampler;
else if(strcasecmp(str, "linear") == 0)
DefaultResampler = LinearResampler;
+ else if(strcasecmp(str, "sinc4") == 0)
+ DefaultResampler = FIR4Resampler;
else if(strcasecmp(str, "cubic") == 0)
- DefaultResampler = CubicResampler;
+ {
+ ERR("Resampler option \"cubic\" is deprecated, using sinc4\n");
+ DefaultResampler = FIR4Resampler;
+ }
else
{
char *end;
-
n = strtol(str, &end, 0);
- if(*end == '\0' && (n == PointResampler || n == LinearResampler || n == CubicResampler))
+ if(*end == '\0' && (n == PointResampler || n == LinearResampler || n == FIR4Resampler))
DefaultResampler = n;
else
WARN("Invalid resampler: %s\n", str);