method
Audio.play
Audio.play(id) -> void
Plays the sound id from the start as a one-shot effect, at the current master volume and pitch.
Example
program Demo {
entry {
let sfx = Audio.load("blip.wav")
Audio.play(sfx)
}
}Audio.play(id) -> void
Plays the sound id from the start as a one-shot effect, at the current master volume and pitch.
program Demo {
entry {
let sfx = Audio.load("blip.wav")
Audio.play(sfx)
}
}