aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 05:38:27 -0800
committerChris Robinson <[email protected]>2018-11-15 05:38:27 -0800
commitab9f8162b84870161948ddd27d29483206dd4e57 (patch)
tree2267d6fc4f2b3400937d9555452813cdbf29bc8a /Alc/hrtf.cpp
parent9d9d626d99e2514c03a783140fa11076a4580607 (diff)
Pass a normal const char* to EnumerateHrtf
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r--Alc/hrtf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index 153b57b6..4bc1305d 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -1116,13 +1116,13 @@ ResData GetResource(int name)
} // namespace
-vector_EnumeratedHrtf EnumerateHrtf(const_al_string devname)
+vector_EnumeratedHrtf EnumerateHrtf(const char *devname)
{
vector_EnumeratedHrtf list{VECTOR_INIT_STATIC()};
bool usedefaults{true};
const char *pathlist{""};
- if(ConfigValueStr(alstr_get_cstr(devname), nullptr, "hrtf-paths", &pathlist))
+ if(ConfigValueStr(devname, nullptr, "hrtf-paths", &pathlist))
{
while(pathlist && *pathlist)
{
@@ -1154,7 +1154,7 @@ vector_EnumeratedHrtf EnumerateHrtf(const_al_string devname)
pathlist = next;
}
}
- else if(ConfigValueExists(alstr_get_cstr(devname), nullptr, "hrtf_tables"))
+ else if(ConfigValueExists(devname, nullptr, "hrtf_tables"))
ERR("The hrtf_tables option is deprecated, please use hrtf-paths instead.\n");
if(usedefaults)
@@ -1172,7 +1172,7 @@ vector_EnumeratedHrtf EnumerateHrtf(const_al_string devname)
}
const char *defaulthrtf{""};
- if(VECTOR_SIZE(list) > 1 && ConfigValueStr(alstr_get_cstr(devname), nullptr, "default-hrtf", &defaulthrtf))
+ if(VECTOR_SIZE(list) > 1 && ConfigValueStr(devname, nullptr, "default-hrtf", &defaulthrtf))
{
const EnumeratedHrtf *iter{};
/* Find the preferred HRTF and move it to the front of the list. */