diff options
-rw-r--r-- | OpenAL32/Include/alu.h | 4 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 2 |
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; |