sound functions ??? How does it work

User avatar
mimilus
Member
 
Posts: 75
Joined: Thu Mar 06, 2014 09:08
GitHub: mimilus
IRC: Mimilus

sound functions ??? How does it work

by mimilus » Sun Apr 06, 2014 19:13

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
-- mods/default/functions.lua

--
-- Sounds
--

function default.node_sound_defaults(table)
    table = table or {}
    table.footstep = table.footstep or
            {name="", gain=1.0}
    table.dug = table.dug or
            {name="default_dug_node", gain=0.25}
    table.place = table.place or
            {name="default_place_node_hard", gain=1.0}
    return table
end


{name="default_dug_node", gain=0.25} What does it mean ?
default_dug_node = default_dug_node.1.ogg and default_dug_node.2.ogg ???

I would like to add echo on default sound with new sounds in a mode
minetest 0.4.9
Ubuntu 12.04
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Apr 06, 2014 21:25

Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 12 guests