Options
All
  • Public
  • Public/Protected
  • All
Menu

Internal class representing a Web Audio AudioBufferSourceNode instance

see

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _duration

_duration: number | undefined = undefined

Protected _instance

_instance: AudioBufferSourceNode

Protected _isPaused

_isPaused: boolean = false

Protected _isPlaying

_isPlaying: boolean = false

Protected _loop

_loop: boolean = false

Protected _playingPromise

_playingPromise: Promise<boolean>

Protected _src

_src: string | AudioBuffer

Protected _volume

_volume: number = 1

Accessors

duration

  • get duration(): number
  • set duration(value: number | undefined): void

loop

  • get loop(): boolean
  • set loop(value: boolean): void

volume

  • get volume(): number
  • set volume(value: number): void

Methods

Protected _handleOnEnded

  • _handleOnEnded(): void

Protected _resumePlayBack

  • _resumePlayBack(): void

Protected _startPlayBack

  • _startPlayBack(): void

Protected _wireUpOnEnded

  • _wireUpOnEnded(): void

isPlaying

  • isPlaying(): boolean

pause

  • pause(): void

play

stop

  • stop(): void