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