Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioPlayer

Hierarchy

Index

Constructors

constructor

Properties

Protected _blocking

_blocking: boolean = false

Protected _clip

_clip: AudioClip

Protected _duration

_duration: number = 0

Protected _interrupted

_interrupted: boolean = false

Protected _onHide

_onHide: Function

Protected _onShow

_onShow: Function

Protected _state

_state: number = PlayingState.STOPPED

Methods

destroy

  • destroy(): void

Abstract getCurrentTime

  • getCurrentTime(): number

getDuration

  • getDuration(): number

Abstract getLoop

  • getLoop(): boolean

getState

  • getState(): number

Abstract getVolume

  • getVolume(): number

Abstract pause

  • pause(): void

Abstract play

  • play(): void

Abstract playOneShot

  • playOneShot(volume: number): void

Abstract setCurrentTime

  • setCurrentTime(val: number): void

Abstract setLoop

  • setLoop(val: boolean): void

Abstract setVolume

  • setVolume(val: number, immediate: boolean): void

Abstract stop

  • stop(): void

Generated using TypeDoc