aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-10-31 17:24:46 -0700
committerChris Robinson <[email protected]>2014-10-31 17:24:46 -0700
commit336aba6f1f9bc21d900435a264c048a36bca0fc8 (patch)
treee0a6b9a0ce6c824eafbd157c1425aa14d6b23e4f /OpenAL32
parentac51c9cce67dcaa968f527e54c48f20d54117c76 (diff)
Rename the source's Orientation to Direction
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/alSource.c18
2 files changed, 10 insertions, 10 deletions
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;