Skip to content
Evandro Leopoldino Gonçalves edited this page Aug 7, 2022 · 5 revisions

Both properties are getter and setter:

  • audio.volume: number
  • audio.loop: boolean

Read-only property:

  • audio.state: 'running' | 'suspended' | 'closed'
    • suspended: the audio has been suspended.
    • running: the audio is running.
    • closed: the audio has been closed.
  • audio.audioCtx: AudioContext