diff options
author | Chris Robinson <[email protected]> | 2019-11-28 08:24:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-28 08:24:29 -0800 |
commit | 925e6e979c85a1e8f36d5fb01ce3a4409e38927c (patch) | |
tree | 839d2597421fc509e67ecce9d7fd0f649fd10783 /alc/alc.cpp | |
parent | 1e93fba6d02486634afa27fc58a79e8ffa6c6458 (diff) |
Rework HRTF enuemration so the loaded HRTFs are separate
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 0a8a2c59..4557771f 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1894,9 +1894,9 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(!device->HrtfList.empty()) { if(hrtf_id >= 0 && static_cast<ALuint>(hrtf_id) < device->HrtfList.size()) - hrtf = GetLoadedHrtf(device->HrtfList[static_cast<ALuint>(hrtf_id)].hrtf); + hrtf = GetLoadedHrtf(device->HrtfList[static_cast<ALuint>(hrtf_id)]); else - hrtf = GetLoadedHrtf(device->HrtfList.front().hrtf); + hrtf = GetLoadedHrtf(device->HrtfList.front()); } if(hrtf) @@ -4145,7 +4145,7 @@ START_API_FUNC { case ALC_HRTF_SPECIFIER_SOFT: if(index >= 0 && static_cast<size_t>(index) < dev->HrtfList.size()) - return dev->HrtfList[static_cast<ALuint>(index)].name.c_str(); + return dev->HrtfList[static_cast<ALuint>(index)].c_str(); alcSetError(dev.get(), ALC_INVALID_VALUE); break; |