diff options
author | Chris Robinson <[email protected]> | 2016-05-17 20:02:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-17 20:02:46 -0700 |
commit | aff725cba3f64cb668acf64b8f547a128a8976d1 (patch) | |
tree | 158964bb2d5fb9c812c15abce81d62e84b84f6b5 /OpenAL32/Include | |
parent | 82675c018dab303ce39665512f0ae847d01289da (diff) |
Avoid redundantly storing distance model settings
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alListener.h | 6 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index 3008f7bc..a10d6728 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -20,9 +20,6 @@ struct ALlistenerProps { ATOMIC(ALfloat) DopplerVelocity; ATOMIC(ALfloat) SpeedOfSound; - ATOMIC(ALboolean) SourceDistanceModel; - ATOMIC(enum DistanceModel) DistanceModel; - ATOMIC(struct ALlistenerProps*) next; }; @@ -52,9 +49,6 @@ typedef struct ALlistener { ALfloat DopplerFactor; ALfloat SpeedOfSound; - - ALboolean SourceDistanceModel; - enum DistanceModel DistanceModel; } Params; } ALlistener; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 4a15cea1..fbd63ce2 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -205,7 +205,7 @@ inline struct ALsource *LookupSource(ALCcontext *context, ALuint id) inline struct ALsource *RemoveSource(ALCcontext *context, ALuint id) { return (struct ALsource*)RemoveUIntMapKeyNoLock(&context->SourceMap, id); } -void UpdateSourceProps(ALsource *source, ALuint num_sends); +void UpdateSourceProps(ALsource *source, ALuint num_sends, ALCcontext *context); void UpdateAllSourceProps(ALCcontext *context); ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state); ALboolean ApplyOffset(ALsource *Source); |