aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALu.c6
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/alSource.c18
3 files changed, 13 insertions, 13 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index a55fc485..9d7653a5 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -609,9 +609,9 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte
Position[0] = ALSource->Position[0];
Position[1] = ALSource->Position[1];
Position[2] = ALSource->Position[2];
- Direction[0] = ALSource->Orientation[0];
- Direction[1] = ALSource->Orientation[1];
- Direction[2] = ALSource->Orientation[2];
+ Direction[0] = ALSource->Direction[0];
+ Direction[1] = ALSource->Direction[1];
+ Direction[2] = ALSource->Direction[2];
Velocity[0] = ALSource->Velocity[0];
Velocity[1] = ALSource->Velocity[1];
Velocity[2] = ALSource->Velocity[2];
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 39bb8185..34d01e19 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -59,7 +59,7 @@ typedef struct ALsource {
volatile ALfloat RollOffFactor;
volatile ALfloat Position[3];
volatile ALfloat Velocity[3];
- volatile ALfloat Orientation[3];
+ volatile ALfloat Direction[3];
volatile ALboolean HeadRelative;
volatile ALboolean Looping;
volatile enum DistanceModel DistanceModel;
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index e47008c5..a148a21a 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -523,9 +523,9 @@ static ALboolean SetSourcefv(ALsource *Source, ALCcontext *Context, SrcFloatProp
CHECKVAL(isfinite(values[0]) && isfinite(values[1]) && isfinite(values[2]));
LockContext(Context);
- Source->Orientation[0] = values[0];
- Source->Orientation[1] = values[1];
- Source->Orientation[2] = values[2];
+ Source->Direction[0] = values[0];
+ Source->Direction[1] = values[1];
+ Source->Direction[2] = values[2];
UnlockContext(Context);
ATOMIC_STORE(&Source->NeedsUpdate, AL_TRUE);
return AL_TRUE;
@@ -1019,9 +1019,9 @@ static ALboolean GetSourcedv(ALsource *Source, ALCcontext *Context, SrcFloatProp
case AL_DIRECTION:
LockContext(Context);
- values[0] = Source->Orientation[0];
- values[1] = Source->Orientation[1];
- values[2] = Source->Orientation[2];
+ values[0] = Source->Direction[0];
+ values[1] = Source->Direction[1];
+ values[2] = Source->Direction[2];
UnlockContext(Context);
return AL_TRUE;
@@ -2381,9 +2381,9 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->Position[0] = 0.0f;
Source->Position[1] = 0.0f;
Source->Position[2] = 0.0f;
- Source->Orientation[0] = 0.0f;
- Source->Orientation[1] = 0.0f;
- Source->Orientation[2] = 0.0f;
+ Source->Direction[0] = 0.0f;
+ Source->Direction[1] = 0.0f;
+ Source->Direction[2] = 0.0f;
Source->Velocity[0] = 0.0f;
Source->Velocity[1] = 0.0f;
Source->Velocity[2] = 0.0f;