aboutsummaryrefslogtreecommitdiffstats
path: root/alc/device.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-06-23 10:45:24 -0700
committerChris Robinson <[email protected]>2021-06-23 10:45:24 -0700
commit9a7bca1116e7676b92ad6a5f33c0adce8172d0b2 (patch)
tree628197726dafe27dadef2aa02720822953df4a72 /alc/device.cpp
parent5b2489c3e8d19d0be49b94131b6e6a813d37e5ea (diff)
Add wrapper methods for getting device config values
Diffstat (limited to 'alc/device.cpp')
-rw-r--r--alc/device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/device.cpp b/alc/device.cpp
index 0f7d2b57..41ef6d44 100644
--- a/alc/device.cpp
+++ b/alc/device.cpp
@@ -64,8 +64,8 @@ ALCdevice::~ALCdevice()
void ALCdevice::enumerateHrtfs()
{
- mHrtfList = EnumerateHrtf(ConfigValueStr(DeviceName.c_str(), nullptr, "hrtf-paths"));
- if(auto defhrtfopt = ConfigValueStr(DeviceName.c_str(), nullptr, "default-hrtf"))
+ mHrtfList = EnumerateHrtf(configValue<std::string>(nullptr, "hrtf-paths"));
+ if(auto defhrtfopt = configValue<std::string>(nullptr, "default-hrtf"))
{
auto iter = std::find(mHrtfList.begin(), mHrtfList.end(), *defhrtfopt);
if(iter == mHrtfList.end())