From 764ea95781486f86c7be956e84cf97ab893ac07b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 3 Oct 2013 05:02:16 -0700 Subject: Use helpers to set channel gain arrays Also avoid unnecessary clearing. --- Alc/effects/flanger.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Alc/effects/flanger.c') diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c index e9de888a..6b1a84ad 100644 --- a/Alc/effects/flanger.c +++ b/Alc/effects/flanger.c @@ -103,13 +103,6 @@ static ALvoid ALflangerState_update(ALflangerState *state, ALCdevice *Device, co ALfloat frequency = (ALfloat)Device->Frequency; ALfloat rate; ALint phase; - ALuint it; - - for(it = 0;it < MaxChannels;it++) - { - state->Gain[0][it] = 0.0f; - state->Gain[1][it] = 0.0f; - } state->waveform = Slot->EffectProps.Flanger.Waveform; state->depth = Slot->EffectProps.Flanger.Depth; -- cgit v1.2.3