aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-04-02 20:23:19 -0700
committerChris Robinson <[email protected]>2019-04-02 20:23:19 -0700
commite66632b301b4d1fdbf51a31bedbc96e9a322dad3 (patch)
treed1f98ca09dd810e67418875bf2f4e41452841620 /OpenAL32/Include/alu.h
parentd04f9326c95696413a26f6a2d004138f42686e4d (diff)
Avoid directly using CalcAmbiCoeffs
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r--OpenAL32/Include/alu.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 3856bc72..44083688 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -403,20 +403,6 @@ inline void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread,
CalcAmbiCoeffs(x, y, z, spread, coeffs);
}
-/**
- * ScaleAzimuthFront
- *
- * Scales the given azimuth toward the side (+/- pi/2 radians) for positions in
- * front.
- */
-inline float ScaleAzimuthFront(float azimuth, float scale)
-{
- ALfloat sign = std::copysign(1.0f, azimuth);
- if(!(std::fabs(azimuth) > al::MathDefs<float>::Pi()*0.5f))
- return minf(std::fabs(azimuth) * scale, al::MathDefs<float>::Pi()*0.5f) * sign;
- return azimuth;
-}
-
/**
* ComputePanGains