Add `duration` parameter
Since who knows when Minetest is gonna implement it (see https://github.com/minetest/minetest/issues/12375). This is vital for accessibility options, as it's not possible at the moment knowing when a sound actually has ended (rendering all non bgm panels for 1s before they start to fade)
Notes:
-
barebone implementation -
tweak duration according to pitch -
make it work with accessibility options -
not mandatory but print a warning in chat saying that it's best if modders specify a duration
Edited by Zughy