diff options
author | Chris Robinson <[email protected]> | 2014-10-31 17:24:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-10-31 17:24:46 -0700 |
commit | 336aba6f1f9bc21d900435a264c048a36bca0fc8 (patch) | |
tree | e0a6b9a0ce6c824eafbd157c1425aa14d6b23e4f /OpenAL32/alSource.c | |
parent | ac51c9cce67dcaa968f527e54c48f20d54117c76 (diff) |
Rename the source's Orientation to Direction
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; |