diff options
author | Chris Robinson <[email protected]> | 2018-11-20 12:25:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-20 12:25:15 -0800 |
commit | f3e01ae9d4f4028f36652ae1e81bbe5bf33389bb (patch) | |
tree | 51a91613c8278ee293306a8d5f06f343b41e3d13 /OpenAL32/Include/alSource.h | |
parent | a111254c26cb1c926dda8730a20790bcc5f78ef1 (diff) |
Use a normal vector for the source send properties
Diffstat (limited to 'OpenAL32/Include/alSource.h')
-rw-r--r-- | OpenAL32/Include/alSource.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 9ad5577d..4e111250 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -4,6 +4,7 @@ #include "alMain.h" #include "alu.h" #include "hrtf.h" +#include "almalloc.h" #include "atomic.h" #define MAX_SENDS 16 @@ -72,14 +73,15 @@ typedef struct ALsource { ALfloat GainLF; ALfloat LFReference; } Direct; - struct { + struct SendData { struct ALeffectslot *Slot; ALfloat Gain; ALfloat GainHF; ALfloat HFReference; ALfloat GainLF; ALfloat LFReference; - } *Send; + }; + al::vector<SendData> Send; /** * Last user-specified offset, and the offset type (bytes, samples, or @@ -106,6 +108,13 @@ typedef struct ALsource { /** Self ID */ ALuint id; + + + ALsource(ALsizei num_sends); + ~ALsource(); + + ALsource(const ALsource&) = delete; + ALsource& operator=(const ALsource&) = delete; } ALsource; void UpdateAllSourceProps(ALCcontext *context); |