From 08a9f5c5d1364951f9dbab9f89398028f035e647 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Mon, 16 Mar 2026 11:06:46 +0100 Subject: [PATCH] Add sound.load --- sound.load.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sound.load.md diff --git a/sound.load.md b/sound.load.md new file mode 100644 index 0000000..4629960 --- /dev/null +++ b/sound.load.md @@ -0,0 +1,17 @@ +# sound.load(filename) +Carrega un so en format WAV des del fitxer especificat i el torna com a identificador numèric. + +### Paràmetres +* filename — Fitxer WAV a carregar. + +### Torna +L'identificador numèric del so carregat. + +### Exemple +``` +local s = sound.load("explosion.wav") +``` + +### Vore també +* [sound.play](sound.play) +* [sound.free](sound.free)