aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-09-05 02:02:14 -0700
committerChris Robinson <[email protected]>2016-09-05 02:02:14 -0700
commit8a64f071213f387c4675012ec1df51b9295564b3 (patch)
tree8a892e91b2748d6e0bc4e108b14384f8d897e4b6 /Alc/ALu.c
parent42452b7f796a317a8d1159d16c5b84f8defd5e80 (diff)
Use a predefined identity matrix
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index d50582ad..f93781df 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -93,6 +93,13 @@ extern inline void aluMatrixfSet(aluMatrixf *matrix,
ALfloat m20, ALfloat m21, ALfloat m22, ALfloat m23,
ALfloat m30, ALfloat m31, ALfloat m32, ALfloat m33);
+const aluMatrixf IdentityMatrixf = {{
+ { 1.0f, 0.0f, 0.0f, 0.0f },
+ { 0.0f, 1.0f, 0.0f, 0.0f },
+ { 0.0f, 0.0f, 1.0f, 0.0f },
+ { 0.0f, 0.0f, 0.0f, 1.0f },
+}};
+
static inline HrtfDirectMixerFunc SelectHrtfMixer(void)
{