aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-11 21:48:47 -0700
committerChris Robinson <[email protected]>2017-05-11 21:48:47 -0700
commit685dc24299b0ce7d51f27387af2cbf69f9fec7b8 (patch)
tree3e931d776cf7b31a8cb68e69927f7965ed4455f7
parentef58a8f2056d5a85f33543cebc23d08388c78e52 (diff)
Restore the previous reverb B2A and A2B matrices
Also, untranspose the A2B matrix.
-rw-r--r--Alc/effects/reverb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 41ec423b..77a19c7f 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -311,18 +311,18 @@ static ALvoid ALreverbState_Destruct(ALreverbState *State)
* in the future, true opposites can be used.
*/
static const aluMatrixf B2A = {{
- { 0.866025403785f, 0.288675134595f, 0.288675134595f, 0.288675134595f },
- { 0.866025403785f, -0.288675134595f, -0.288675134595f, 0.288675134595f },
- { 0.866025403785f, 0.288675134595f, -0.288675134595f, -0.288675134595f },
- { 0.866025403785f, -0.288675134595f, 0.288675134595f, -0.288675134595f }
+ { 0.288675134595f, 0.288675134595f, 0.288675134595f, 0.288675134595f },
+ { 0.288675134595f, -0.288675134595f, -0.288675134595f, 0.288675134595f },
+ { 0.288675134595f, 0.288675134595f, -0.288675134595f, -0.288675134595f },
+ { 0.288675134595f, -0.288675134595f, 0.288675134595f, -0.288675134595f }
}};
-/* Converts A-Format to B-Format (transposed). */
+/* Converts A-Format to B-Format. */
static const aluMatrixf A2B = {{
- { 0.288675134595f, 0.866025403785f, 0.866025403785f, 0.8660254038f },
- { 0.288675134595f, -0.866025403785f, -0.866025403785f, 0.8660254038f },
- { 0.288675134595f, 0.866025403785f, -0.866025403785f, -0.8660254038f },
- { 0.288675134595f, -0.866025403785f, 0.866025403785f, -0.8660254038f }
+ { 0.866025403785f, 0.866025403785f, 0.866025403785f, 0.866025403785f },
+ { 0.866025403785f, -0.866025403785f, 0.866025403785f, -0.866025403785f },
+ { 0.866025403785f, -0.866025403785f, -0.866025403785f, 0.866025403785f },
+ { 0.866025403785f, 0.866025403785f, -0.866025403785f, -0.866025403785f }
}};
static const ALfloat FadeStep = 1.0f / FADE_SAMPLES;
@@ -1305,14 +1305,14 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection
STATIC_CAST(ALeffectState,State)->OutBuffer = Device->FOAOut.Buffer;
STATIC_CAST(ALeffectState,State)->OutChannels = Device->FOAOut.NumChannels;
- /* Note: Both _m2 and _res are transposed. */
+ /* Note: _res is transposed. */
#define MATRIX_MULT(_res, _m1, _m2) do { \
int row, col; \
for(col = 0;col < 4;col++) \
{ \
for(row = 0;row < 4;row++) \
- _res.m[col][row] = _m1.m[row][0]*_m2.m[col][0] + _m1.m[row][1]*_m2.m[col][1] + \
- _m1.m[row][2]*_m2.m[col][2] + _m1.m[row][3]*_m2.m[col][3]; \
+ _res.m[col][row] = _m1.m[row][0]*_m2.m[0][col] + _m1.m[row][1]*_m2.m[1][col] + \
+ _m1.m[row][2]*_m2.m[2][col] + _m1.m[row][3]*_m2.m[3][col]; \
} \
} while(0)
/* Create a matrix that first converts A-Format to B-Format, then rotates