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
  • Returns void

Private doStop

  • _doStop(): void
  • Returns void

Private onEnded

  • _onEnded(): void
  • Returns void

Private onGesture

  • _onGesture(): void
  • Returns void

Private onGestureProceed

  • _onGestureProceed(): void
  • Returns void

Private playAndEmit

  • _playAndEmit(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

getCurrentTime

  • getCurrentTime(): number

getDuration

  • getDuration(): number

getLoop

  • getLoop(): boolean
  • Returns boolean

getState

  • getState(): number
  • Returns number

getVolume

  • getVolume(): number

pause

  • pause(): void
  • Returns void

play

  • play(): void
  • Returns void

playOneShot

  • playOneShot(volume?: number): void
  • Parameters

    • Default value volume: number = 1

    Returns void

setCurrentTime

  • setCurrentTime(val: number): void

setLoop

  • setLoop(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setVolume

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

    • val: number
    • immediate: boolean

    Returns void

stop

  • stop(): void
  • Returns void

Generated using TypeDoc