aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 21:18:19 -0800
committerChris Robinson <[email protected]>2018-11-18 21:18:19 -0800
commite23796aabe21a065b3fde34e8023a60a4bcb7dc5 (patch)
tree464e2d5d9947992e9cfa1024f719f62cc5643091 /Alc/alc.cpp
parent140c139852de0bde537de0314e30239832f309f1 (diff)
Use a standard string for the enumerated HRTF names
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 805ba70c..f4a64199 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2436,7 +2436,7 @@ ALCdevice_struct::~ALCdevice_struct()
VECTOR_DEINIT(FilterList);
almtx_destroy(&FilterLock);
- FreeHrtfList(HrtfList);
+ HrtfList.clear();
if(HrtfHandle)
Hrtf_DecRef(HrtfHandle);
HrtfHandle = nullptr;
@@ -3364,7 +3364,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.clear();
device->HrtfList = EnumerateHrtf(device->DeviceName.c_str());
values[0] = (ALCint)device->HrtfList.size();
almtx_unlock(&device->BackendLock);
@@ -4460,7 +4460,7 @@ ALC_API const ALCchar* ALC_APIENTRY alcGetStringiSOFT(ALCdevice *device, ALCenum
{
case ALC_HRTF_SPECIFIER_SOFT:
if(index >= 0 && (size_t)index < device->HrtfList.size())
- str = device->HrtfList[index].name;
+ str = device->HrtfList[index].name.c_str();
else
alcSetError(device, ALC_INVALID_VALUE);
break;