4 #define AL_NUM_SOURCE_PARAMS 128
6 /* This cannot be changed without working on the code! */
10 #include "alAuxEffectSlot.h"
13 #define AL_DIRECT_FILTER 0x20005
14 #define AL_AUXILIARY_SEND_FILTER 0x20006
15 #define AL_AIR_ABSORPTION_FACTOR 0x20007
16 #define AL_ROOM_ROLLOFF_FACTOR 0x20008
17 #define AL_CONE_OUTER_GAINHF 0x20009
18 #define AL_DIRECT_FILTER_GAINHF_AUTO 0x2000A
19 #define AL_AUXILIARY_SEND_FILTER_GAIN_AUTO 0x2000B
20 #define AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO 0x2000C
26 typedef struct ALbufferlistitem
31 struct ALbufferlistitem
*next
;
34 typedef struct ALsource
43 ALfloat flRefDistance
;
44 ALfloat flMaxDistance
;
45 ALfloat flRollOffFactor
;
48 ALfloat vOrientation
[3];
49 ALboolean bHeadRelative
;
58 ALuint position_fraction
;
59 struct ALbufferlistitem
*queue
; // Linked list of buffers in queue
60 ALuint BuffersInQueue
; // Number of buffers in queue
61 ALuint BuffersProcessed
; // Number of buffers already processed (played)
63 ALuint TotalBufferDataSize
; // Total amount of data contained in the buffers queued for this source
64 ALuint BuffersPlayed
; // Number of buffers played on this loop
65 ALuint BufferPosition
; // Read position in audio data of current buffer
67 ALfilter DirectFilter
;
74 ALfloat LastDrySample
;
75 ALfloat LastWetSample
;
77 ALboolean DryGainHFAuto
;
78 ALboolean WetGainAuto
;
79 ALboolean WetGainHFAuto
;
82 ALfloat AirAbsorptionFactor
;
84 ALfloat RoomRolloffFactor
;
94 // Source Type (Static, Streaming, or Undetermined)
97 struct ALsource
*next
;