Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioPlayer

Hierarchy

  • AudioPlayer

Index

Constructors

constructor

Properties

Private _muted

_muted: boolean

Private _playbackRate

_playbackRate: number

Private _system

_system: AudioSystem

currentAudio

currentAudio: AudioAsset

played

stopped

volume

volume: number

Methods

Private _changeMuted

  • _changeMuted(muted: boolean): void
  • Parameters

    • muted: boolean

    Returns void

Private _changePlaybackRate

  • _changePlaybackRate(rate: number): void
  • Parameters

    • rate: number

    Returns void

_onVolumeChanged

  • _onVolumeChanged(): void
  • Returns void

Private _supportsPlaybackRate

  • _supportsPlaybackRate(): boolean
  • Returns boolean

canHandleStopped

  • canHandleStopped(): boolean
  • Returns boolean

changeVolume

  • changeVolume(volume: number): void
  • Parameters

    • volume: number

    Returns void

play

  • Parameters

    Returns void

stop

  • stop(): void
  • Returns void

Generated using TypeDoc