Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Voice

Index

Constructors

constructor

  • new Voice(sound: Sound): Voice

Properties

Private _channel

_channel: SoundChannel

Private _isPlay

_isPlay: boolean

Private _position

_position: number = 0

Private _sound

_sound: Sound

Accessors

isPlay

  • get isPlay(): boolean

Methods

dispose

  • dispose(): void

play

  • play(startTime?: number, loops?: number): SoundChannel
  • Parameters

    • Default value startTime: number = 0
    • Default value loops: number = 0

    Returns SoundChannel

Private playComplete

  • playComplete(evt: Event): void

resume

  • resume(): void

setVolume

  • setVolume(value: number): void

stop

  • stop(): void

Generated using TypeDoc