aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-12-16 07:20:27 -0800
committerChris Robinson <[email protected]>2014-12-16 07:20:27 -0800
commit3b8f54d572b586cd60e6b0c8d839c71edeabbdae (patch)
tree18ceb20f443075707db5a56db4dcc5e40c5b72f3 /Alc/ALc.c
parent97f6d302fe61529ca590d67af9c32bb42e75cdf5 (diff)
Use aluVector in some more places
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 4c030478..2f174744 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2259,12 +2259,8 @@ static ALvoid InitContext(ALCcontext *Context)
//Initialise listener
Context->Listener->Gain = 1.0f;
Context->Listener->MetersPerUnit = 1.0f;
- Context->Listener->Position[0] = 0.0f;
- Context->Listener->Position[1] = 0.0f;
- Context->Listener->Position[2] = 0.0f;
- Context->Listener->Velocity[0] = 0.0f;
- Context->Listener->Velocity[1] = 0.0f;
- Context->Listener->Velocity[2] = 0.0f;
+ aluVectorSet(&Context->Listener->Position, 0.0f, 0.0f, 0.0f, 1.0f);
+ aluVectorSet(&Context->Listener->Velocity, 0.0f, 0.0f, 0.0f, 0.0f);
Context->Listener->Forward[0] = 0.0f;
Context->Listener->Forward[1] = 0.0f;
Context->Listener->Forward[2] = -1.0f;