method
Audio.play_sound
Audio.play_sound(id) -> void
An alias of Audio.play — plays the sound id once from the start.
Example
program Demo {
entry {
let sfx = Audio.load("blip.wav")
Audio.play_sound(sfx)
}
}Audio.play_sound(id) -> void
An alias of Audio.play — plays the sound id once from the start.
program Demo {
entry {
let sfx = Audio.load("blip.wav")
Audio.play_sound(sfx)
}
}