diff options
author | Chris Robinson <[email protected]> | 2015-08-23 22:01:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-08-23 22:01:29 -0700 |
commit | 7ffb9b3056ab280d5d9408fd023f3cfb370ed103 (patch) | |
tree | 11f0ae862ec21ad3921c0962c0ddb02a1845cc18 /Alc | |
parent | 8559af5d48285dedceecdba8b5ce0442e09977ed (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')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++) |