aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-11 21:59:59 -0800
committerChris Robinson <[email protected]>2018-02-11 22:23:03 -0800
commite63e0ee596e207d225e2340c867f0c0c83496cc8 (patch)
treec8b3d47eb9e90be961d624f046577c657de3726d /Alc/mixer.c
parent494e9fd61d1a4ca98bb314a6615e720556519a95 (diff)
Combine multiple functions called sequentially
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 11b721f1..eb4568b2 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -564,8 +564,8 @@ ALboolean MixSource(ALvoice *voice, ALuint SourceID, ALCcontext *Context, ALsize
#define APPLY_NFC_MIX(order) \
if(voice->Direct.ChannelsPerOrder[order] > 0) \
{ \
- NfcFilterUpdate##order(&parms->NFCtrlFilter[order-1], nfcsamples, \
- samples, DstBufferSize); \
+ NfcFilterUpdate##order(&parms->NFCtrlFilter, nfcsamples, samples, \
+ DstBufferSize); \
MixSamples(nfcsamples, voice->Direct.ChannelsPerOrder[order], \
voice->Direct.Buffer+chanoffset, parms->Gains.Current+chanoffset, \
parms->Gains.Target+chanoffset, Counter, OutPos, DstBufferSize \