aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-12 08:18:20 -0800
committerChris Robinson <[email protected]>2012-02-12 08:18:20 -0800
commit9f073b6f1b29a00d229e200f507bece1bd59336c (patch)
tree265f5c78514548decd10b03a3c5ee84c2b41e33e
parentb375b130babf7dd08bb666abb46c035807ee4549 (diff)
Use a proper enum value for setting the default distance model
-rw-r--r--OpenAL32/Include/alu.h4
-rw-r--r--OpenAL32/alSource.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index a3584775..64e5f2e2 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -157,7 +157,9 @@ enum DistanceModel {
InverseDistance = AL_INVERSE_DISTANCE,
LinearDistance = AL_LINEAR_DISTANCE,
ExponentDistance = AL_EXPONENT_DISTANCE,
- DisableDistance = AL_NONE
+ DisableDistance = AL_NONE,
+
+ DefaultDistanceModel = InverseDistanceClamped
};
#define BUFFERSIZE 4096
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index eefca756..d62a5c76 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1826,7 +1826,7 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->DopplerFactor = 1.0f;
Source->DirectChannels = AL_FALSE;
- Source->DistanceModel = AL_INVERSE_DISTANCE_CLAMPED;
+ Source->DistanceModel = DefaultDistanceModel;
Source->Resampler = DefaultResampler;