API Reference › Audio › Audio.play
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)
  }
}
← All symbols