From 082622951d99edfe4bfbf66b7af05bf0e8a8f4f1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Aug 2019 17:29:55 -0700 Subject: [PATCH] Don't allow numeric values for the resampler option --- alc/mixvoice.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index df955719..8c54b706 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -195,14 +195,7 @@ void aluInitMixer() ResamplerDefault = FIR4Resampler; } else - { - char *end; - long n = strtol(str, &end, 0); - if(*end == '\0' && (n == PointResampler || n == LinearResampler || n == FIR4Resampler)) - ResamplerDefault = static_cast(n); - else - WARN("Invalid resampler: %s\n", str); - } + ERR("Invalid resampler: %s\n", str); } MixHrtfBlendSamples = SelectHrtfBlendMixer();