aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-08-23 22:01:29 -0700
committerChris Robinson <[email protected]>2015-08-23 22:01:29 -0700
commit7ffb9b3056ab280d5d9408fd023f3cfb370ed103 (patch)
tree11f0ae862ec21ad3921c0962c0ddb02a1845cc18 /Alc/ALu.c
parent8559af5d48285dedceecdba8b5ce0442e09977ed (diff)
Fix B-Format rotation
The rotation erroneously specified the orientation of the source relative to the sound field, whereas it should be the orientation of the sound field *and* source relative to the listener. So now when the source is oriented left, the front of the sound field is to the left of the listener.
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 4bd7cdfb..096940af 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -510,9 +510,9 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
aluMatrixSet(&matrix,
1.0f, 0.0f, 0.0f, 0.0f,
- 0.0f, -N[2], -N[0], N[1],
- 0.0f, U[2], U[0], -U[1],
- 0.0f, -V[2], -V[0], V[1]
+ 0.0f, -N[2], U[2], -V[2],
+ 0.0f, -N[0], U[0], -V[0],
+ 0.0f, N[1], -U[1], V[1]
);
for(c = 0;c < num_channels;c++)