aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-28 16:17:00 -0800
committerChris Robinson <[email protected]>2019-11-28 16:17:00 -0800
commite80256e3941e45cd1b734fe2c005c6885186e7e8 (patch)
treec480c083fcdc1d20006e5eaaf3bf449030db5007 /alc
parentb310e09f596b0325da774a543de086b44d98523f (diff)
Remove an unnecessary alias
Diffstat (limited to 'alc')
-rw-r--r--alc/hrtf.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index da2ac8b1..76263a79 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -1174,21 +1174,20 @@ void AddBuiltInEntry(const std::string &dispname, ALuint residx)
#define IDR_DEFAULT_HRTF_MHR 1
-using ResData = al::span<const char>;
#ifndef ALSOFT_EMBED_HRTF_DATA
-ResData GetResource(int /*name*/)
-{ return ResData{}; }
+al::span<const char> GetResource(int /*name*/)
+{ return {}; }
#else
#include "hrtf_default.h"
-ResData GetResource(int name)
+al::span<const char> GetResource(int name)
{
if(name == IDR_DEFAULT_HRTF_MHR)
return {reinterpret_cast<const char*>(hrtf_default), sizeof(hrtf_default)};
- return ResData{};
+ return {};
}
#endif
@@ -1294,7 +1293,7 @@ HrtfStore *GetLoadedHrtf(const std::string &name, const char *devname, const ALu
if(sscanf(fname.c_str(), "!%d%c", &residx, &ch) == 2 && ch == '_')
{
TRACE("Loading %s...\n", fname.c_str());
- ResData res{GetResource(residx)};
+ al::span<const char> res{GetResource(residx)};
if(res.empty())
{
ERR("Could not get resource %u, %s\n", residx, name.c_str());