summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
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/alSource.c
parent30f57d0824826c38d8991f041ea8870e19b44033 (diff)
Pay attention to the MAX_SENDS value
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c3
1 files changed, 2 insertions, 1 deletions
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)
{