1 #ifndef _AL_LISTENER_H_
2 #define _AL_LISTENER_H_
11 struct ALlistenerProps
{
17 ALfloat MetersPerUnit
;
19 ALfloat DopplerFactor
;
20 ALfloat DopplerVelocity
;
22 ALboolean SourceDistanceModel
;
23 enum DistanceModel DistanceModel
;
25 ATOMIC(struct ALlistenerProps
*) next
;
28 typedef struct ALlistener
{
34 ALfloat MetersPerUnit
;
36 /* Pointer to the most recent property values that are awaiting an update.
38 ATOMIC(struct ALlistenerProps
*) Update
;
40 /* A linked list of unused property containers, free to use for future
43 ATOMIC(struct ALlistenerProps
*) FreeList
;
50 ALfloat MetersPerUnit
;
52 ALfloat DopplerFactor
;
55 ALboolean SourceDistanceModel
;
56 enum DistanceModel DistanceModel
;
60 void UpdateListenerProps(ALCcontext
*context
);