diff options
author | Chris Robinson <[email protected]> | 2014-12-16 07:20:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-12-16 07:20:27 -0800 |
commit | 3b8f54d572b586cd60e6b0c8d839c71edeabbdae (patch) | |
tree | 18ceb20f443075707db5a56db4dcc5e40c5b72f3 /Alc/ALc.c | |
parent | 97f6d302fe61529ca590d67af9c32bb42e75cdf5 (diff) |
Use aluVector in some more places
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; |