diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 3 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 3 |
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) { |