diff options
author | Chris Robinson <[email protected]> | 2018-11-18 05:40:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-18 05:40:00 -0800 |
commit | ad82a70a655f3b1172a2b1c49b3eea2feb699c16 (patch) | |
tree | 75181389e46034e23c0a0298018e6e037c9fe632 /OpenAL32/Include | |
parent | de13f30e286358d8e4f41e457421e4ec9776e3f5 (diff) |
Use cleaner constructor/destructor calls for ALCcontext
Note that the actual type name is ALCcontext_struct, because of how it's
defined in AL/alc.h (ALCcontext is just an alias to struct ALCcontext_struct).
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alListener.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index e14527d9..1e0a8265 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -22,17 +22,17 @@ struct ALlistenerProps { }; struct ALlistener { - alignas(16) ALfloat Position[3]; - ALfloat Velocity[3]; - ALfloat Forward[3]; - ALfloat Up[3]; - ALfloat Gain; + 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}; + ALfloat Gain{1.0f}; - ATOMIC(ALenum) PropsClean; + ATOMIC(ALenum) PropsClean{AL_TRUE}; /* Pointer to the most recent property values that are awaiting an update. */ - ATOMIC(ALlistenerProps*) Update; + ATOMIC(ALlistenerProps*) Update{nullptr}; struct { aluMatrixf Matrix; |