Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioPlayerWeb

Hierarchy

Index

Constructors

constructor

Properties

Protected _audio

_audio: AudioBuffer

Protected _blocking

_blocking: boolean = false

Private _context

_context: AudioContext

Protected _currentTimer

_currentTimer: number = 0

Protected _duration

_duration: number = 0

Protected _eventTarget

_eventTarget: any

Private _gainNode

_gainNode: GainNode

Protected _interrupted

_interrupted: boolean = false

Protected _loop

_loop: boolean = false

Protected _offset

_offset: number = 0

Private onEndedCB

onEndedCB: function

Type declaration

    • (): void
    • Returns void

Private onGestureCB

onGestureCB: function

Type declaration

    • (): void
    • Returns void

Private onGestureProceedCB

onGestureProceedCB: function

Type declaration

    • (): void
    • Returns void

Protected _onHide

_onHide: Function

Protected _onShow

_onShow: Function

Private _sourceNode

_sourceNode: AudioBufferSourceNode

Private _startInvoked

_startInvoked: boolean = false

Protected _startTime

_startTime: number = 0

Protected _state

_state: number = PlayingState.STOPPED

Protected _volume

_volume: number = 1

Methods

Private doPlay

  • _doPlay(): void

Private doStop

  • _doStop(): void

Private onEnded

  • _onEnded(): void

Private onGesture

  • _onGesture(): void

Private onGestureProceed

  • _onGestureProceed(): void

Private playAndEmit

  • _playAndEmit(): void

destroy

  • destroy(): void

getCurrentTime

  • getCurrentTime(): number

getDuration

  • getDuration(): number

getLoop

  • getLoop(): boolean

getState

  • getState(): number

getVolume

  • getVolume(): number

pause

  • pause(): void

play

  • play(): void

playOneShot

  • playOneShot(volume?: number): void

setCurrentTime

  • setCurrentTime(val: number): void

setLoop

  • setLoop(val: boolean): void

setVolume

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

stop

  • stop(): void

Generated using TypeDoc