Use a proper enum value for setting the default distance model
This commit is contained in:
parent
b375b130ba
commit
9f073b6f1b
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user