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
Methods
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
setVolume
- setVolume(value: number): void