aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alListener.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2018-12-26 22:27:34 -0800
committerChris Robinson <chris.kcat@gmail.com>2018-12-26 22:27:34 -0800
commitd367093c0616e561a14ca1c486aff99cde98f4be (patch)
tree42401356036220bdb993171a3da73ca9f1c97403 /OpenAL32/Include/alListener.h
parenta4ac43b60294c5e21913c977942b19f174407d85 (diff)
Use std::array for appropriate source and listener properties
Diffstat (limited to 'OpenAL32/Include/alListener.h')
-rw-r--r--OpenAL32/Include/alListener.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h
index 490f1594..0aa28a46 100644
--- a/OpenAL32/Include/alListener.h
+++ b/OpenAL32/Include/alListener.h
@@ -1,6 +1,8 @@
#ifndef _AL_LISTENER_H_
#define _AL_LISTENER_H_
+#include <array>
+
#include "AL/alc.h"
#include "AL/al.h"
#include "AL/alext.h"
@@ -12,20 +14,20 @@ enum class DistanceModel;
struct ALlistenerProps {
- ALfloat Position[3];
- ALfloat Velocity[3];
- ALfloat Forward[3];
- ALfloat Up[3];
+ std::array<ALfloat,3> Position;
+ std::array<ALfloat,3> Velocity;
+ std::array<ALfloat,3> OrientAt;
+ std::array<ALfloat,3> OrientUp;
ALfloat Gain;
std::atomic<ALlistenerProps*> next;
};
struct ALlistener {
- ALfloat Position[3]{0.0f, 0.0f, 0.0f};
- ALfloat Velocity[3]{0.0f, 0.0f, 0.0f};
- ALfloat Forward[3]{0.0f, 0.0f, -1.0f};
- ALfloat Up[3]{0.0f, 1.0f, 0.0f};
+ std::array<ALfloat,3> Position{{0.0f, 0.0f, 0.0f}};
+ std::array<ALfloat,3> Velocity{{0.0f, 0.0f, 0.0f}};
+ std::array<ALfloat,3> OrientAt{{0.0f, 0.0f, -1.0f}};
+ std::array<ALfloat,3> OrientUp{{0.0f, 1.0f, 0.0f}};
ALfloat Gain{1.0f};
std::atomic_flag PropsClean{true};