From a3d4868ef4aff13da8c2e9fde88e1f6a479ac7d2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 12 Oct 2012 08:01:02 -0700 Subject: [PATCH] Initialize the listener velocity parameter --- Alc/ALc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Alc/ALc.c b/Alc/ALc.c index bcd242d6..1b157666 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1820,6 +1820,8 @@ static ALvoid InitContext(ALCcontext *Context) for(j = 0;j < 4;j++) Context->Listener->Params.Matrix[i][j] = ((i==j) ? 1.0f : 0.0f); } + for(i = 0;i < 3;i++) + Context->Listener->Params.Velocity[i] = 0.0f; //Validate Context Context->LastError = AL_NO_ERROR;