diff options
author | Chris Robinson <[email protected]> | 2008-11-25 18:56:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-11-25 18:56:10 -0800 |
commit | 55b9ccc2deacf6870cabff704239caf2c85493fa (patch) | |
tree | 2b743e582670e48b9aa67ba830805a4e7d483d69 /OpenAL32/alState.c | |
parent | 67d67a3bf636dc2cdaf0faf75875e0a17cb29577 (diff) |
Implement AL_EXTX_source_distance_model
As with other EXTX extensions, this is subject to change and removal as the
spec gets worked on
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 0a01dc37..8ca5a012 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -24,6 +24,7 @@ #include "alMain.h" #include "AL/alc.h" #include "alError.h" +#include "alSource.h" #include "alState.h" static const ALchar alVendor[] = "OpenAL Community"; @@ -644,6 +645,7 @@ ALAPI ALvoid ALAPIENTRY alSpeedOfSound(ALfloat flSpeedOfSound) ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value) { ALCcontext *Context; + ALsource *Source; Context=alcGetCurrentContext(); if (Context) @@ -660,6 +662,8 @@ ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value) case AL_EXPONENT_DISTANCE: case AL_EXPONENT_DISTANCE_CLAMPED: Context->DistanceModel = value; + for(Source = Context->Source;Source != NULL;Source = Source->next) + Source->DistanceModel = value; break; default: |