Page 1 of 1

Volume of sounds should fade out faster over distance

PostPosted: Thu Jun 02, 2016 05:32
by burli
If I play positional sounds with sound_play() the volume decreases unnaturally slow over distance. If I play a sound and walk away I can hear it for a long time. max_hear_distance has no effect.

I would suggest that sounds fade out at max_hear_distance

Re: Volume of sounds should fade out faster over distance

PostPosted: Sun Jun 05, 2016 04:24
by philipbenr
+1

Sam must have super-hearing... Superman? He can fly... XD

Re: Volume of sounds should fade out faster over distance

PostPosted: Sun Jun 05, 2016 11:43
by paramat
Is it a looped sound? if so did you attach it to an object as is apparently necessary?
https://github.com/minetest/minetest_game/issues/1112

Re: Volume of sounds should fade out faster over distance

PostPosted: Sun Jun 05, 2016 12:15
by burli
paramat wrote:Is it a looped sound? if so did you attach it to an object as is apparently necessary?
https://github.com/minetest/minetest_game/issues/1112

No, it is not a loop sound and it is just positional, but some sounds are 60 seconds long and if you walk away you can hear them in an unnatural far distance, even if the sound is not very loud. And if you play more than one sound they get louder and louder, also unnatural

Re: Volume of sounds should fade out faster over distance

PostPosted: Sun Jun 05, 2016 12:22
by azekill_DIABLO
burli wrote:If I play positional sounds with sound_play() the volume decreases unnaturally slow over distance. If I play a sound and walk away I can hear it for a long time. max_hear_distance has no effect.

I would suggest that sounds fade out at max_hear_distance

+1
philipbenr wrote:+1

Sam must have super-hearing... Superman? He can fly... XD

SuperSam!
Image

Re: Volume of sounds should fade out faster over distance

PostPosted: Sun Jun 05, 2016 18:33
by paramat
> No, it is not a loop sound and it is just positional, but some sounds are 60 seconds long and if you walk away you can hear them in an unnatural far distance, even if the sound is not very loud.

Ok i remember now this is a known issue with long sounds, max hear distance is only checked when the sound starts, because the sound code is designed for short sounds. Continous checking of a player's position would of course be more complex.