diff options
Diffstat (limited to 'Alc/effects/autowah.c')
-rw-r--r-- | Alc/effects/autowah.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c index 38a8049a..09474d56 100644 --- a/Alc/effects/autowah.c +++ b/Alc/effects/autowah.c @@ -76,7 +76,7 @@ static ALvoid ALautowahState_update(ALautowahState *state, ALCdevice *device, co state->PeakGain = slot->EffectProps.Autowah.PeakGain; state->Resonance = slot->EffectProps.Autowah.Resonance; - gain = sqrtf(1.0f / device->NumChan) * slot->Gain; + gain = sqrtf(1.0f / device->NumSpeakers) * slot->Gain; SetGains(device, gain, state->Gain); } |