Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WAudio

Hierarchy

  • WAudio

Implements

Index

Constructors

constructor

  • Returns WAudio

Properties

fadingIn

fadingIn: boolean = false

fadingOut

fadingOut: boolean = false

musicSpeed

musicSpeed: number = 1

Methods

fadeIn

  • fadeIn(): void
  • Returns void

fadeOut

  • fadeOut(): void
  • Returns void

nextTrack

  • nextTrack(): void
  • Returns void

playMusic

  • playMusic(): void
  • Returns void

processEffects

  • processEffects(): void

queueEffect

  • queueEffect(type: SfxType, x: number, y: number, z: number, delay?: number, speed?: number, noPosition?: boolean): void
  • Parameters

    • type: SfxType
    • x: number
    • y: number
    • z: number
    • Default value delay: number = 0
    • Default value speed: number = 1
    • Default value noPosition: boolean = false

    Returns void

setUpMusic

  • setUpMusic(track: HTMLAudioElement): void
  • Parameters

    • track: HTMLAudioElement

    Returns void

updateMusicSpeed

  • updateMusicSpeed(speed: number): void
  • Parameters

    • speed: number

    Returns void

updatePosition

  • updatePosition(): void

updateVolume

  • updateVolume(): void

Generated using TypeDoc