From 29b5dae6aa010224b2fd428530e1cd67d6d92e1a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 May 2014 07:54:51 -0700 Subject: Pass some DirectParams as function parameters --- Alc/mixer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Alc/mixer.c') diff --git a/Alc/mixer.c b/Alc/mixer.c index 8db0289e..b50651c8 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -350,7 +350,9 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo) DoFilters(&directparms->LpFilter[chan], &directparms->HpFilter[chan], SrcData, ResampledData, DstBufferSize, directparms->Filters[chan]); - src->DryMix(directparms, SrcData, chan, OutPos, DstBufferSize); + src->DryMix(directparms, directparms->OutBuffer, SrcData, + maxu(directparms->Counter, OutPos) - OutPos, chan, + OutPos, DstBufferSize); } for(j = 0;j < Device->NumAuxSends;j++) -- cgit v1.2.3