aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcDedicated.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcDedicated.c')
-rw-r--r--Alc/alcDedicated.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c
index e10ad9e9..bb82bbcb 100644
--- a/Alc/alcDedicated.c
+++ b/Alc/alcDedicated.c
@@ -73,6 +73,9 @@ static ALvoid DedicatedProcess(ALeffectState *effect, ALuint SamplesToDo, const
for(c = 0;c < MaxChannels;c++)
{
+ if(!(gains[c] > 0.00001f))
+ continue;
+
for(i = 0;i < SamplesToDo;i++)
SamplesOut[c][i] = SamplesIn[i] * gains[c];
}