aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/textures/default_glass.png
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-09-23 08:38:22 +0100
committerparamat <mat.gregory@virginmedia.com>2017-09-25 19:09:21 +0100
commita455297d297c0819a7eff89e51e5f01a5ac731c3 (patch)
tree27d66be28d50b0d9a1710ce9403c250752e56879 /games/minimal/mods/default/textures/default_glass.png
parentd5a97e00eaac54def16fb53b68cfed7300af0854 (diff)
downloadminetest-a455297d297c0819a7eff89e51e5f01a5ac731c3.tar.gz
minetest-a455297d297c0819a7eff89e51e5f01a5ac731c3.tar.bz2
minetest-a455297d297c0819a7eff89e51e5f01a5ac731c3.zip
Positional sound: Limit volume when closer than 1 node
Change OpenAL distance model from AL_INVERSE_DISTANCE to AL_INVERSE_DISTANCE_CLAMPED to avoid excessive volume when very close to the sound location, for example MTG doors, and MTG fire sounds which are combined at an average position and often located in air nodes. Because AL_REFERENCE_DISTANCE has been reduced to 1 node (the distance under which gain is clamped), multiply volume by the same factor to keep sound gains the same as before, since the gain is calculated as: gain = (AL_REFERENCE_DISTANCE / distance)
Diffstat (limited to 'games/minimal/mods/default/textures/default_glass.png')
0 files changed, 0 insertions, 0 deletions