How to use the ambient noise?

How to use the ambient noise?

Postby Oliver_Buo » 02 Apr 2017, 16:23

How to use the ambient noise?
What do I have to adjust here for values.
For me, it always sounds somehow no matter what I adjust .... :|


sound.JPG
ambient noise
User avatar
Oliver_Buo
 
Posts: 106
Joined: 27 Nov 2016, 17:51

Re: How to use the ambient noise?

Postby brmbrmcar » 02 Apr 2017, 18:16

What values do you wish to change? I believe that most are meant to be between 0 and 1.
brmbrmbrmbrmbrmbrmcar
User avatar
brmbrmcar
 
Posts: 310
Joined: 24 Oct 2015, 14:46

Re: How to use the ambient noise?

Postby VNS » 02 Apr 2017, 19:36

Personally I don't use the ambient noise, I use
{l Code}: {l Select All Code}
play_sound("sounds/rain.wav");
as a script.
Ambient sound is more like a way to constantly play a sound, such as rain or a saw.
"Distance Factor" is going to be a bit hard to explain in a formula. The higher the number is, the closer you need to be to the ambient sound trigger. 1 is the max capacity. My recommended values are: "0.001" (Sound can be heard from around 75 blocks away), and "0.01" (Sound can be heard from around 10 blocks away). So, all in all, this determines how much you want to hear the sound from a distance.
"Distance Bias" is the 'fade' from the sound. Setting the distance bias to 1000 means the sound will slowly fade away and by the time it reaches the 'length' of the sound (shown above,) the sound will then just disappear. Setting the distance bias to 0 means the sound will equally fade away depending on how far you are from it, also that accords to the Distance Factor.

It's a complicated recipe to get it going so that's why I don't use it. Hope my explanation above helps.
You're reading this? Yay!
What should I say? I don't know..
VNS
 
Posts: 118
Joined: 30 Nov 2016, 21:40
Location: somewhere, don't really know

Re: How to use the ambient noise?

Postby Tobbi » 02 Apr 2017, 22:12

I am not sure this is even properly implemented yet.
SuperTux developer and light in the darkness of open source jump & run.
Code Review? What code review? My code works!
Says *sigh* if something's not quite right.
Doesn't actually know anything about computers.
Thinks that creating chickens with buzzers on their backs is a good leisure activity.
#nahrungsergaenzungsmittel
Tobbi
 
Posts: 249
Joined: 12 Oct 2013, 13:08

Re: How to use the ambient noise?

Postby Oliver_Buo » 03 Apr 2017, 18:36

thank u all.... :)
User avatar
Oliver_Buo
 
Posts: 106
Joined: 27 Nov 2016, 17:51

Who is online

Users browsing this forum: No registered users and 1 guest