aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-04-11 20:04:46 -0700
committerChris Robinson <[email protected]>2009-04-11 20:04:46 -0700
commitc67fbd72dd9cb2dcc21b690c94ff8dc39bc0d34a (patch)
tree919a073b5f662ed32cc518208aeb73d389c78880 /OpenAL32
parent30f57d0824826c38d8991f041ea8870e19b44033 (diff)
Pay attention to the MAX_SENDS value
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h3
-rw-r--r--OpenAL32/alSource.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index b79f43d6..d3d70b00 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -3,7 +3,6 @@
#define AL_NUM_SOURCE_PARAMS 128
-/* This cannot be changed without working on the code! */
#define MAX_SENDS 1
#include "alFilter.h"
@@ -96,7 +95,7 @@ typedef struct ALsource
// Current gains, which are ramped while mixed
ALfloat DryGains[OUTPUTCHANNELS];
- ALfloat WetGain;
+ ALfloat WetGains[MAX_SENDS];
ALboolean FirstStart;
struct ALsource *next;
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index c20f3a97..b30cf666 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1444,7 +1444,8 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList)
{
for(j = 0;j < OUTPUTCHANNELS;j++)
pSource->DryGains[j] = 0.0f;
- pSource->WetGain = 0.0f;
+ for(j = 0;j < MAX_SENDS;j++)
+ pSource->WetGains[j] = 0.0f;
if (pSource->state != AL_PAUSED)
{