PilzAdam wrote:I made a nearly complete code overhaul: https://github.com/PilzAdam/MinetestAmbience/commit/2d63317bce4b9f08a4585ce682c42ced567eb3db
Changes:
- Every ambience list have a own frequency (in %)
- You can define a gain for every soundfile (see line 50)
- you can add "music = true" to minetest.conf to hear music
- Split the code up into more smaller functions
You rock Pilz! I really like the new arrangement of code and the flexibility it gives. There's was one small issue, when it went from day to night the birds kept chirping. I just changed the or to an and in the is_daytime function and that fixed it.
