summaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-04-10 22:53:08 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2020-04-11 13:12:51 +0200
commit5f3a17eb65c1ad9259f03bde346a8d69fe0c1069 (patch)
tree12b575647f8b76a88ff4dea6027621d5a32aeeb2 /doc/client_lua_api.txt
parent054c5dfaa35dd79560a465ccc0ef214cb5f34c88 (diff)
downloadminetest-5f3a17eb65c1ad9259f03bde346a8d69fe0c1069.tar.gz
minetest-5f3a17eb65c1ad9259f03bde346a8d69fe0c1069.tar.bz2
minetest-5f3a17eb65c1ad9259f03bde346a8d69fe0c1069.zip
Implement minetest.sound_fade()
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 3612f851b..2c8ffd4d4 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -734,6 +734,13 @@ Call these functions only at load time!
* `spec` is a `SimpleSoundSpec`
* `parameters` is a sound parameter table
* `minetest.sound_stop(handle)`
+ * `handle` is a handle returned by `minetest.sound_play`
+* `minetest.sound_fade(handle, step, gain)`
+ * `handle` is a handle returned by `minetest.sound_play`
+ * `step` determines how fast a sound will fade.
+ Negative step will lower the sound volume, positive step will increase
+ the sound volume.
+ * `gain` the target gain for the fade.
### Timing
* `minetest.after(time, func, ...)`