diff options
author | Chris Robinson <[email protected]> | 2019-01-08 23:44:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-08 23:44:08 -0800 |
commit | 673983dc5d05e8b47958c95f12dba3d7a915edfa (patch) | |
tree | f0abff2eab0b2fe3b0cfb8a5762a54e113bfb4b1 /Alc/hrtf.h | |
parent | bc1eeb5df052d3e7eb0f11a4730357b463774e6a (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() }; |