Use a proper enum value for setting the default distance model

This commit is contained in:
Chris Robinson 2012-02-12 08:18:20 -08:00
parent b375b130ba
commit 9f073b6f1b
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;