aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ff7e6429..d083825b 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2272,6 +2272,7 @@ static ALvoid InitContext(ALCcontext *Context)
listener->Up[0] = 0.0f;
listener->Up[1] = 1.0f;
listener->Up[2] = 0.0f;
+
aluMatrixdSet(&listener->Params.Matrix,
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
@@ -2279,6 +2280,10 @@ static ALvoid InitContext(ALCcontext *Context)
0.0, 0.0, 0.0, 1.0
);
aluVectorSet(&listener->Params.Velocity, 0.0f, 0.0f, 0.0f, 0.0f);
+ listener->Params.Gain = 1.0f;
+ listener->Params.MetersPerUnit = 1.0f;
+ listener->Params.DopplerFactor = 1.0f;
+ listener->Params.SpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
//Validate Context
ATOMIC_INIT(&Context->LastError, AL_NO_ERROR);