Use OpenAL's linear attenuation model

We should use the inverse distance clamped model (the default), but we first
need to handle muting sounds that are beyond their max distance. Linear
attenuation doesn't give a proper rolloff, but it makes the sounds silent at
max distance.
actorid
Chris Robinson 13 years ago
parent a256b9a7b0
commit 2f92559fc7

@ -303,6 +303,8 @@ bool OpenAL_Output::Initialize(const std::string &devname)
Device = 0;
return false;
}
alDistanceModel(AL_LINEAR_DISTANCE_CLAMPED);
throwALerror();
return true;
}

Loading…
Cancel
Save