aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-08 18:27:05 -0800
committerChris Robinson <[email protected]>2012-03-08 18:27:05 -0800
commit6e70ae9958fe8e0f2abfa8d0acc198f0ef053af6 (patch)
tree8ca5428a2dacb03727f36d1351185ea43958f43e /Alc/ALu.c
parente190fc9416a14bbe35abfde94f38ff8ca98dfa99 (diff)
The listener velocity is specified in world coordinates, too
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 32f14022..29950d77 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -463,6 +463,8 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
aluMatrixVector(Position, 1.0f, Matrix);
aluMatrixVector(Direction, 0.0f, Matrix);
aluMatrixVector(Velocity, 0.0f, Matrix);
+ /* Transform listener vectors into listener space */
+ aluMatrixVector(ListenerVel, 0.0f, Matrix);
}
else
{