aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-12 08:45:19 -0800
committerChris Robinson <[email protected]>2012-02-12 08:45:19 -0800
commite394d14cdab07cab5fce75a2e175a3439c8c8edd (patch)
tree221a0c63315c7b66ba75f397ca77b47db33ad270 /Alc/ALc.c
parent9f073b6f1b29a00d229e200f507bece1bd59336c (diff)
Use more proper enum names for the resampler
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a528aa69..1c786919 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -588,17 +588,17 @@ static void alc_initconfig(void)
if(ConfigValueStr(NULL, "resampler", &str))
{
if(strcasecmp(str, "point") == 0 || strcasecmp(str, "none") == 0)
- DefaultResampler = POINT_RESAMPLER;
+ DefaultResampler = PointResampler;
else if(strcasecmp(str, "linear") == 0)
- DefaultResampler = LINEAR_RESAMPLER;
+ DefaultResampler = LinearResampler;
else if(strcasecmp(str, "cubic") == 0)
- DefaultResampler = CUBIC_RESAMPLER;
+ DefaultResampler = CubicResampler;
else
{
char *end;
n = strtol(str, &end, 0);
- if(*end == '\0' && n < RESAMPLER_MAX && n > RESAMPLER_MIN)
+ if(*end == '\0' && (n == PointResampler || n == LinearResampler || n == CubicResampler))
DefaultResampler = n;
else
WARN("Invalid resampler: %s\n", str);