Options
All
  • Public
  • Public/Protected
  • All
Menu

Controls the audio signals emitted

Hierarchy

  • Sound

Index

Methods

Static deserialize

  • deserialize(_serialization: Serialization[]): void

Static fade

  • fade(_url: RequestInfo, _toVolume: number, _duration: number, _loop?: boolean): Promise<void>
  • Changes the volume of the sound defined by the url linearly of the given duration to the define volume. If the sound is not currently playing, it starts it respecting the loop-flag.

    Parameters

    • _url: RequestInfo
    • _toVolume: number
    • _duration: number
    • _loop: boolean = false

    Returns Promise<void>

Static play

  • play(_url: RequestInfo, _volume: number, _loop?: boolean): Sound

Static serialize

  • serialize(): Serialization[]

Static setMasterVolume

  • setMasterVolume(_volume: number): void

Generated using TypeDoc