Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sound

Index

Constructors

constructor

  • new Sound(url: string, callback: Function): Sound
  • Parameters

    • url: string
    • callback: Function

    Returns Sound

Properties

audio

audio: HTMLMediaElement

context

context: AudioContext

node

node: MediaElementAudioSourceNode

Methods

autoplay

  • autoplay(auto?: boolean): void
  • Parameters

    • auto: boolean = true

    Returns void

connect

  • connect(node: AudioNode): void
  • Parameters

    • node: AudioNode

    Returns void

currentTime

  • currentTime(): number
  • Returns number

disconnect

  • disconnect(): void
  • Returns void

duration

  • duration(): number
  • Returns number

loop

  • loop(loop?: boolean): void
  • Parameters

    • loop: boolean = true

    Returns void

pause

  • pause(): void
  • Returns void

paused

  • paused(): boolean
  • Returns boolean

play

  • play(): void
  • Returns void

volume

  • volume(): number
  • Returns number