aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-08 23:44:08 -0800
committerChris Robinson <[email protected]>2019-01-08 23:44:08 -0800
commit673983dc5d05e8b47958c95f12dba3d7a915edfa (patch)
treef0abff2eab0b2fe3b0cfb8a5762a54e113bfb4b1 /Alc/hrtf.h
parentbc1eeb5df052d3e7eb0f11a4730357b463774e6a (diff)
Make Create methods for structs with flexible array members ...
... that are used with unique_ptr.
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r--Alc/hrtf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index 7954ac11..58c35466 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -1,6 +1,7 @@
#ifndef ALC_HRTF_H
#define ALC_HRTF_H
+#include <memory>
#include <string>
#include "AL/al.h"
@@ -64,6 +65,7 @@ struct DirectHrtfState {
} Chan[];
DirectHrtfState() noexcept { }
+ static std::unique_ptr<DirectHrtfState> Create(ALsizei num_chans);
DEF_PLACE_NEWDEL()
};