OpenAL sound: Use a simpler distance model
authorparamat <mat.gregory@virginmedia.com>
Tue, 24 Jan 2017 10:16:56 +0000 (10:16 +0000)
committerparamat <mat.gregory@virginmedia.com>
Thu, 9 Feb 2017 00:10:35 +0000 (00:10 +0000)
commita5ee7139a591eeffce5171e0df7a76f3c7a1d57e
tree7af5e17003aa379efe45582cdc63c3c6e1e9e826
parente2ad76f91087215309012300eb9f1ebdd7fa40ee
OpenAL sound: Use a simpler distance model

In createPlayingSoundAt(), AL_ROLLOFF_FACTOR is not set, so it has
the default value of 1.0, this makes the equation of the currently
used AL_EXPONENT_DISTANCE distance model identical to the equation
of the simpler AL_INVERSE_DISTANCE distance model.

Using AL_INVERSE_DISTANCE means an exponent is not processed,
exponents are quite intensive to process.
There is no change in sound attenuation behaviour.

The commented-out AL_ROLLOFF_FACTOR value is removed as it would
now have a different effect if used.
src/sound_openal.cpp