aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixvoice.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2019-09-16 15:10:36 -0700
committerChris Robinson <chris.kcat@gmail.com>2019-09-16 15:10:36 -0700
commit899a414591559633f2641a74325dffc5e54562c7 (patch)
tree5cd3b23181266634ff89fd3bc3ea68862bc0762c /alc/mixvoice.cpp
parent6d93b2ba81958eb277da4361924e89bc7048da41 (diff)
Remove the last uses of the system's str[n]casecmp
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r--alc/mixvoice.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp
index 3d4d9cb8..34fe9275 100644
--- a/alc/mixvoice.cpp
+++ b/alc/mixvoice.cpp
@@ -48,6 +48,7 @@
#include "alnumeric.h"
#include "aloptional.h"
#include "alspan.h"
+#include "alstring.h"
#include "alu.h"
#include "cpu_caps.h"
#include "devformat.h"
@@ -174,22 +175,22 @@ void aluInitMixer()
if(auto resopt = ConfigValueStr(nullptr, nullptr, "resampler"))
{
const char *str{resopt->c_str()};
- if(strcasecmp(str, "point") == 0 || strcasecmp(str, "none") == 0)
+ if(al::strcasecmp(str, "point") == 0 || al::strcasecmp(str, "none") == 0)
ResamplerDefault = PointResampler;
- else if(strcasecmp(str, "linear") == 0)
+ else if(al::strcasecmp(str, "linear") == 0)
ResamplerDefault = LinearResampler;
- else if(strcasecmp(str, "cubic") == 0)
+ else if(al::strcasecmp(str, "cubic") == 0)
ResamplerDefault = FIR4Resampler;
- else if(strcasecmp(str, "bsinc12") == 0)
+ else if(al::strcasecmp(str, "bsinc12") == 0)
ResamplerDefault = BSinc12Resampler;
- else if(strcasecmp(str, "bsinc24") == 0)
+ else if(al::strcasecmp(str, "bsinc24") == 0)
ResamplerDefault = BSinc24Resampler;
- else if(strcasecmp(str, "bsinc") == 0)
+ else if(al::strcasecmp(str, "bsinc") == 0)
{
WARN("Resampler option \"%s\" is deprecated, using bsinc12\n", str);
ResamplerDefault = BSinc12Resampler;
}
- else if(strcasecmp(str, "sinc4") == 0 || strcasecmp(str, "sinc8") == 0)
+ else if(al::strcasecmp(str, "sinc4") == 0 || al::strcasecmp(str, "sinc8") == 0)
{
WARN("Resampler option \"%s\" is deprecated, using cubic\n", str);
ResamplerDefault = FIR4Resampler;