aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/echo.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-23 16:44:59 -0800
committerChris Robinson <[email protected]>2017-02-23 16:44:59 -0800
commitc2a79f0f7b1d8f9a868e3411797005cefcebafa1 (patch)
tree3d133c8c88bfd1f87375b22afe3b2abee83e4ede /Alc/effects/echo.c
parent08948079e93cbb7321be5715df36f54c5e6be3b7 (diff)
Remove CalcXYZCoeffs and inline CalcAngleCoeffs
Diffstat (limited to 'Alc/effects/echo.c')
-rw-r--r--Alc/effects/echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c
index 4a11d811..07eba9eb 100644
--- a/Alc/effects/echo.c
+++ b/Alc/effects/echo.c
@@ -134,11 +134,11 @@ static ALvoid ALechoState_update(ALechoState *state, const ALCdevice *Device, co
gain = Slot->Params.Gain;
/* First tap panning */
- CalcXYZCoeffs(-lrpan, 0.0f, 0.0f, spread, coeffs);
+ CalcAngleCoeffs(-F_PI_2*lrpan, 0.0f, spread, coeffs);
ComputePanningGains(Device->Dry, coeffs, gain, state->Gain[0]);
/* Second tap panning */
- CalcXYZCoeffs( lrpan, 0.0f, 0.0f, spread, coeffs);
+ CalcAngleCoeffs( F_PI_2*lrpan, 0.0f, spread, coeffs);
ComputePanningGains(Device->Dry, coeffs, gain, state->Gain[1]);
}