Neuromancer56/MinetestAmbience — pull request #1 by PilzAdam (2012-08-18 10:46:32+00:00)
Title: Rework of the sound playing algorithm

I made a new algorithm to chek wich sounds should be played:
Day: The day sounds are played when its daytime and the player is above y=0
Night: The night sounds are played when its nighttime and the player is above y=0
Cave: The cave sounds are played when the player is below y=0
The soundnames are in the arrays at the beginning of init.lua. They are played randomly. If someone want to add a new soundfile he have to put it in the sounds folder and add the name to the array.
There are currently no cave sounds. If you add them you uncomment the lines 19 and 28.