diff options
author | Chris Robinson <[email protected]> | 2015-10-01 00:34:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-01 00:34:13 -0700 |
commit | 07f80eb4e1ba0839ae97fac0914855c239c4ea1f (patch) | |
tree | 75b38bc640ace778979b6bb04e428255ff1749dc /Alc/ALc.c | |
parent | d5675d5395cc8eb4df60a147e0f5caba48fbf68f (diff) |
Move the resampler stuff to mixer.c where it's used
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -1003,31 +1003,6 @@ static void alc_initconfig(void) #endif ConfigValueInt(NULL, NULL, "rt-prio", &RTPrioLevel); - if(ConfigValueStr(NULL, NULL, "resampler", &str)) - { - if(strcasecmp(str, "point") == 0 || strcasecmp(str, "none") == 0) - DefaultResampler = PointResampler; - else if(strcasecmp(str, "linear") == 0) - DefaultResampler = LinearResampler; - else if(strcasecmp(str, "sinc4") == 0) - DefaultResampler = FIR4Resampler; - else if(strcasecmp(str, "sinc6") == 0) - DefaultResampler = FIR6Resampler; - else if(strcasecmp(str, "cubic") == 0) - { - WARN("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 == FIR4Resampler)) - DefaultResampler = n; - else - WARN("Invalid resampler: %s\n", str); - } - } aluInitMixer(); str = getenv("ALSOFT_TRAP_ERROR"); |