diff options
Diffstat (limited to 'Alc/alcDistortion.c')
-rw-r--r-- | Alc/alcDistortion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/alcDistortion.c b/Alc/alcDistortion.c index 0d8f9ce5..59ccca73 100644 --- a/Alc/alcDistortion.c +++ b/Alc/alcDistortion.c @@ -91,7 +91,9 @@ static ALvoid DistortionUpdate(ALeffectState *effect, ALCdevice *Device, const A ALfloat cutoff; ALfloat edge; - for(it = 0; it < Device->NumChan; it++) + for(it = 0;it < MaxChannels;it++) + state->Gain[it] = 0.0f; + for(it = 0;it < Device->NumChan;it++) { enum Channel chan = Device->Speaker2Chan[it]; state->Gain[chan] = gain; |