aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-29 14:14:52 -0800
committerChris Robinson <[email protected]>2019-01-29 14:14:52 -0800
commitc25433986ae52e65fc5549c487be6d074d9b0bb9 (patch)
tree1085c23cff73d9bca8a23429fabbe0af860cb8fc /Alc/hrtf.cpp
parent613145e90036c9ccc4645ff93f366ebb1306d71d (diff)
Add missing include
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r--Alc/hrtf.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index 24ff27f7..2d888d49 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -30,6 +30,7 @@
#include <istream>
#include <numeric>
#include <algorithm>
+#include <functional>
#include "AL/al.h"
#include "AL/alc.h"
@@ -70,6 +71,8 @@ std::unique_ptr<HrtfHandle> HrtfHandle::Create(size_t fname_len)
namespace {
+using namespace std::placeholders;
+
using HrtfHandlePtr = std::unique_ptr<HrtfHandle>;
/* Current data set limits defined by the makehrtf utility. */
@@ -294,7 +297,6 @@ std::unique_ptr<DirectHrtfState> DirectHrtfState::Create(size_t num_chans)
void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALsizei NumChannels, const AngularPoint *AmbiPoints, const ALfloat (*RESTRICT AmbiMatrix)[MAX_AMBI_COEFFS], const ALsizei AmbiCount, const ALfloat *RESTRICT AmbiOrderHFGain)
{
- using namespace std::placeholders;
static constexpr int OrderFromChan[MAX_AMBI_COEFFS]{
0, 1,1,1, 2,2,2,2,2, 3,3,3,3,3,3,3,
};