diff options
author | paramat <paramat@users.noreply.github.com> | 2017-09-23 08:38:22 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:31:59 +0200 |
commit | 3a9d500396b327d04439bb5f629d8d713c228e89 (patch) | |
tree | b920d724fccb167b8d2e83546975a33c2b6eb096 /games/minimal/menu | |
parent | 01b9da870b8501395125f3181cb5893da39831bb (diff) | |
download | minetest-3a9d500396b327d04439bb5f629d8d713c228e89.tar.gz minetest-3a9d500396b327d04439bb5f629d8d713c228e89.tar.bz2 minetest-3a9d500396b327d04439bb5f629d8d713c228e89.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/menu')
0 files changed, 0 insertions, 0 deletions