Class: HTMLAudioContext

htmlaudio.HTMLAudioContext

The fallback version of WebAudioContext which uses <audio> instead of WebAudio API.

new htmlaudio.HTMLAudioContext ()

Extends

  • PIXI.EventEmitter

Implements

Members

audioContext AudioContext readonly

HTML Audio does not support audioContext

filters filters.Filter[]

HTML Audio does not support filters, this is non-functional API.

muted boolean

Current muted status of the context

Default Value:
  • false

paused boolean

Current paused status

Default Value:
  • false

speed number

Current global speed from 0 to 1

Default Value:
  • 1

volume number

Current volume from 0 to 1

Default Value:
  • 1

Methods

destroy () void

Destroy and don't use after this

refresh () void

Internal trigger when volume, mute or speed changes

refreshPaused () void

Internal trigger paused changes

toggleMute () boolean

Toggles the muted state.

Returns:
Type Description
boolean The current muted state.

togglePause () boolean

Toggles the paused state.

Returns:
Type Description
boolean The current paused state.