diff options
author | Chris Robinson <[email protected]> | 2016-05-16 18:28:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-16 18:28:46 -0700 |
commit | aea7c85daab8d0907f11293690cd47af7adece03 (patch) | |
tree | 5edb245b21179a2573f49a7b889e80ccb92c355f /OpenAL32 | |
parent | 56c6b3f56cfd300ce62b6dc932a241ac619cb086 (diff) |
Use floats for the listener transforms
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alListener.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 25 |
2 files changed, 1 insertions, 26 deletions
diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index dee66720..3008f7bc 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -44,7 +44,7 @@ typedef struct ALlistener { ATOMIC(struct ALlistenerProps*) FreeList; struct { - aluMatrixd Matrix; + aluMatrixf Matrix; aluVector Velocity; ALfloat Gain; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index c70c8cff..eb8fb65e 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -101,31 +101,6 @@ inline void aluMatrixfSet(aluMatrixf *matrix, ALfloat m00, ALfloat m01, ALfloat } -typedef union aluMatrixd { - alignas(16) ALdouble m[4][4]; -} aluMatrixd; - -inline void aluMatrixdSetRow(aluMatrixd *matrix, ALuint row, - ALdouble m0, ALdouble m1, ALdouble m2, ALdouble m3) -{ - matrix->m[row][0] = m0; - matrix->m[row][1] = m1; - matrix->m[row][2] = m2; - matrix->m[row][3] = m3; -} - -inline void aluMatrixdSet(aluMatrixd *matrix, ALdouble m00, ALdouble m01, ALdouble m02, ALdouble m03, - ALdouble m10, ALdouble m11, ALdouble m12, ALdouble m13, - ALdouble m20, ALdouble m21, ALdouble m22, ALdouble m23, - ALdouble m30, ALdouble m31, ALdouble m32, ALdouble m33) -{ - aluMatrixdSetRow(matrix, 0, m00, m01, m02, m03); - aluMatrixdSetRow(matrix, 1, m10, m11, m12, m13); - aluMatrixdSetRow(matrix, 2, m20, m21, m22, m23); - aluMatrixdSetRow(matrix, 3, m30, m31, m32, m33); -} - - enum ActiveFilters { AF_None = 0, AF_LowPass = 1, |