aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcontext.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 23:41:11 -0800
committerChris Robinson <[email protected]>2018-11-17 23:41:11 -0800
commit38d6df9c1d10ac74af3454c67147dd21bb0a7bb8 (patch)
treefeb4277bb655062c9fc2df25f83d58fa7170fb98 /Alc/alcontext.h
parente79d9bdd1a6aa6d6d9852bf5a380a8cd01cbc315 (diff)
Store the listener directly in the context
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r--Alc/alcontext.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index 9ef2db3b..16a5e909 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -10,8 +10,9 @@
#include "vector.h"
#include "threads.h"
+#include "alListener.h"
+
-struct ALlistener;
struct ALsource;
struct ALeffectslot;
struct ALcontextProps;
@@ -49,8 +50,6 @@ TYPEDEF_VECTOR(ALeffectslotPtr, vector_ALeffectslotPtr)
struct ALCcontext_struct {
RefCount ref;
- ALlistener *Listener;
-
vector_SourceSubList SourceList;
ALuint NumSources;
almtx_t SourceLock;
@@ -113,8 +112,7 @@ struct ALCcontext_struct {
ATOMIC(ALCcontext*) next;
- /* Memory space used by the listener (and possibly default effect slot) */
- alignas(16) ALCbyte _listener_mem[];
+ ALlistener Listener;
};
ALCcontext *GetContextRef(void);