aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alSource.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-20 12:25:15 -0800
committerChris Robinson <[email protected]>2018-11-20 12:25:15 -0800
commitf3e01ae9d4f4028f36652ae1e81bbe5bf33389bb (patch)
tree51a91613c8278ee293306a8d5f06f343b41e3d13 /OpenAL32/Include/alSource.h
parenta111254c26cb1c926dda8730a20790bcc5f78ef1 (diff)
Use a normal vector for the source send properties
Diffstat (limited to 'OpenAL32/Include/alSource.h')
-rw-r--r--OpenAL32/Include/alSource.h13
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);