diff options
author | Chris Robinson <[email protected]> | 2016-09-05 02:02:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-09-05 02:02:14 -0700 |
commit | 8a64f071213f387c4675012ec1df51b9295564b3 (patch) | |
tree | 8a892e91b2748d6e0bc4e108b14384f8d897e4b6 /Alc/ALu.c | |
parent | 42452b7f796a317a8d1159d16c5b84f8defd5e80 (diff) |
Use a predefined identity matrix
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) { |