Add sound.load
17
sound.load.md
Normal file
17
sound.load.md
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user