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.
This commit is contained in:
parent
8559af5d48
commit
7ffb9b3056
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user