Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WAudio

Hierarchy

Implements

Index

Constructors

constructor

  • Returns WAudio

Properties

Readonly event

event: IEventEmitter<this, IAudioEvents> = new EventEmitter<this, E>(this)

Methods

getMusicHandler

playMusic

  • Sets the current track to the first in the current music handler.

    Returns Promise<void>

processEffects

  • processEffects(): void

queueEffect

  • queueEffect(type: SfxType, x: number, y: number, z: number, delay?: number, speed?: number, noPosition?: boolean, force?: 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
    • Default value force: boolean = false

    Returns void

resetMusicHandler

  • resetMusicHandler(): Promise<void>

setMusicHandler

  • Sets the music handler to the provided instance of EnumCursor<Music>. Causes any playing music to stop.

    Parameters

    Returns Promise<void>

stopMusic

  • stopMusic(): void
  • Returns void

updateMusicSpeed

  • updateMusicSpeed(speed: number): Promise<void>

updatePosition

updateVolume

  • updateVolume(): void

Generated using TypeDoc