From f547ef6d391be5e0cd3e0477c3f8de859a47df69 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 25 Jan 2016 06:11:51 -0800 Subject: Separate calculating ambisonic coefficients from the panning gains --- Alc/effects/autowah.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/autowah.c') diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c index e97083e0..2da75c56 100644 --- a/Alc/effects/autowah.c +++ b/Alc/effects/autowah.c @@ -63,7 +63,7 @@ static ALboolean ALautowahState_deviceUpdate(ALautowahState *state, ALCdevice *d return AL_TRUE; } -static ALvoid ALautowahState_update(ALautowahState *state, ALCdevice *device, const ALeffectslot *slot) +static ALvoid ALautowahState_update(ALautowahState *state, const ALCdevice *device, const ALeffectslot *slot) { ALfloat attackTime, releaseTime; @@ -75,7 +75,7 @@ static ALvoid ALautowahState_update(ALautowahState *state, ALCdevice *device, co state->PeakGain = slot->EffectProps.Autowah.PeakGain; state->Resonance = slot->EffectProps.Autowah.Resonance; - ComputeAmbientGains(device, slot->Gain, state->Gain); + ComputeAmbientGains(device->AmbiCoeffs, device->NumChannels, slot->Gain, state->Gain); } static ALvoid ALautowahState_process(ALautowahState *state, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE], ALuint NumChannels) -- cgit v1.2.3