summaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-06 14:27:33 -0700
committerChris Robinson <[email protected]>2010-11-06 14:27:33 -0700
commit07346da740302fa0db8f756652e992f18f689f56 (patch)
tree309c2dc8a7758d9e0f17b62561abb6efc9080b7a /Alc/mixer.c
parentc95f182a90a1b31188e3ab7e765e28e94212cfe6 (diff)
Use the number of sends the device is configured for in more places
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 4c7fff32..6cc92837 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -174,7 +174,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
PendingClicks[BACK_CENTER] += value*DrySend[BACK_CENTER]; \
} \
\
- for(out = 0;out < MAX_SENDS;out++) \
+ for(out = 0;out < Device->NumAuxSends;out++) \
{ \
ALfloat WetSend; \
ALfloat *WetBuffer; \
@@ -315,7 +315,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
} \
} \
\
- for(out = 0;out < MAX_SENDS;out++) \
+ for(out = 0;out < Device->NumAuxSends;out++) \
{ \
ALfloat WetSend; \
ALfloat *WetBuffer; \
@@ -460,7 +460,7 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac)
} \
} \
\
- for(out = 0;out < MAX_SENDS;out++) \
+ for(out = 0;out < Device->NumAuxSends;out++) \
{ \
ALfloat WetSend; \
ALfloat *WetBuffer; \