Volume of sounds should fade out faster over distance

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Volume of sounds should fade out faster over distance

by burli » Thu Jun 02, 2016 05:32

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
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

Re: Volume of sounds should fade out faster over distance

by philipbenr » Sun Jun 05, 2016 04:24

+1

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

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Volume of sounds should fade out faster over distance

by paramat » Sun Jun 05, 2016 11:43

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
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Volume of sounds should fade out faster over distance

by burli » Sun Jun 05, 2016 12:15

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
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Volume of sounds should fade out faster over distance

by azekill_DIABLO » Sun Jun 05, 2016 12:22

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
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Volume of sounds should fade out faster over distance

by paramat » Sun Jun 05, 2016 18:33

> 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.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 7 guests

cron