aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-25 18:56:10 -0800
committerChris Robinson <[email protected]>2008-11-25 18:56:10 -0800
commit55b9ccc2deacf6870cabff704239caf2c85493fa (patch)
tree2b743e582670e48b9aa67ba830805a4e7d483d69 /Alc
parent67d67a3bf636dc2cdaf0faf75875e0a17cb29577 (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 'Alc')
-rw-r--r--Alc/ALc.c2
-rw-r--r--Alc/ALu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 3913fcae..13e2662c 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -475,7 +475,7 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->lNumStereoSources = 1;
pContext->lNumMonoSources = pContext->Device->MaxNoOfSources - pContext->lNumStereoSources;
- pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic";
+ pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_source_distance_model AL_LOKI_quadriphonic";
level = GetConfigValueInt(NULL, "cf_level", 0);
if(level > 0 && level <= 6)
diff --git a/Alc/ALu.c b/Alc/ALu.c
index cb943eca..7454ad00 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -324,7 +324,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
flAttenuation = 1.0f;
RoomAttenuation = 1.0f;
- switch (ALContext->DistanceModel)
+ switch (ALSource->DistanceModel)
{
case AL_INVERSE_DISTANCE_CLAMPED:
Distance=__max(Distance,MinDist);