aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.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/alc.cpp
parent9d9d626d99e2514c03a783140fa11076a4580607 (diff)
Pass a normal const char* to EnumerateHrtf
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index c90b97f6..dab2a70d 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -1996,7 +1996,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(VECTOR_SIZE(device->HrtfList) == 0)
{
VECTOR_DEINIT(device->HrtfList);
- device->HrtfList = EnumerateHrtf(device->DeviceName);
+ device->HrtfList = EnumerateHrtf(alstr_get_cstr(device->DeviceName));
}
if(VECTOR_SIZE(device->HrtfList) > 0)
{
@@ -3448,7 +3448,7 @@ static ALCsizei GetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALC
case ALC_NUM_HRTF_SPECIFIERS_SOFT:
almtx_lock(&device->BackendLock);
FreeHrtfList(&device->HrtfList);
- device->HrtfList = EnumerateHrtf(device->DeviceName);
+ device->HrtfList = EnumerateHrtf(alstr_get_cstr(device->DeviceName));
values[0] = (ALCint)VECTOR_SIZE(device->HrtfList);
almtx_unlock(&device->BackendLock);
return 1;