aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index cab3f8af..44ef5ded 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -100,9 +100,13 @@ void MixDirect_C(ALsource *Source, ALCdevice *Device, DirectParams *params,
}
for(c = 0;c < MaxChannels;c++)
{
+ if(DrySend[c] < 0.00001f)
+ continue;
+
for(pos = 0;pos < BufferSize;pos++)
DryBuffer[c][OutPos+pos] += data[pos]*DrySend[c];
}
+ pos = BufferSize;
if(OutPos+pos == SamplesToDo)
{
for(c = 0;c < MaxChannels;c++)