aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-04 17:29:55 -0700
committerChris Robinson <[email protected]>2019-08-04 17:29:55 -0700
commit082622951d99edfe4bfbf66b7af05bf0e8a8f4f1 (patch)
tree0542bd00be493296bb6d26d32e25b8451d4280dd /alc
parent2fa2c35bdc2a09d5e856bb12ad6dff556bbe65a8 (diff)
Don't allow numeric values for the resampler option
Diffstat (limited to 'alc')
-rw-r--r--alc/mixvoice.cpp9
1 files changed, 1 insertions, 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<Resampler>(n);
- else
- WARN("Invalid resampler: %s\n", str);
- }
+ ERR("Invalid resampler: %s\n", str);
}
MixHrtfBlendSamples = SelectHrtfBlendMixer();