aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c4
1 files changed, 3 insertions, 1 deletions
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++)