From c2a79f0f7b1d8f9a868e3411797005cefcebafa1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 23 Feb 2017 16:44:59 -0800 Subject: Remove CalcXYZCoeffs and inline CalcAngleCoeffs --- Alc/effects/flanger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/flanger.c') diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c index 1575212b..2a5d230c 100644 --- a/Alc/effects/flanger.c +++ b/Alc/effects/flanger.c @@ -136,9 +136,9 @@ static ALvoid ALflangerState_update(ALflangerState *state, const ALCdevice *Devi state->delay = fastf2i(props->Flanger.Delay * frequency); /* Gains for left and right sides */ - CalcXYZCoeffs(-1.0f, 0.0f, 0.0f, 0.0f, coeffs); + CalcAngleCoeffs(-F_PI_2, 0.0f, 0.0f, coeffs); ComputePanningGains(Device->Dry, coeffs, Slot->Params.Gain, state->Gain[0]); - CalcXYZCoeffs( 1.0f, 0.0f, 0.0f, 0.0f, coeffs); + CalcAngleCoeffs( F_PI_2, 0.0f, 0.0f, coeffs); ComputePanningGains(Device->Dry, coeffs, Slot->Params.Gain, state->Gain[1]); phase = props->Flanger.Phase; -- cgit v1.2.3