Options
All
  • Public
  • Public/Protected
  • All
Menu

Module audio

Index

Type aliases

ManagedAudio

ManagedAudio: AudioPlayerWeb | AudioBufferSourceNode

ManagedAudio

ManagedAudio: AudioPlayerDOM | HTMLAudioElement

Variables

Const AudioType

AudioType: { DOM_AUDIO: number; JSB_AUDIO: number; UNKNOWN_AUDIO: number; WEB_AUDIO: number } = Enum({WEB_AUDIO: 0,DOM_AUDIO: 1,JSB_AUDIO: 2,UNKNOWN_AUDIO: 3,})

Type declaration

  • DOM_AUDIO: number
  • JSB_AUDIO: number
  • UNKNOWN_AUDIO: number
  • WEB_AUDIO: number

Functions

createDomAudio

  • createDomAudio(url: string): Promise<HTMLAudioElement>

Object literals

Const PlayingState

PlayingState: object

INITIALIZING

INITIALIZING: number = 0

PLAYING

PLAYING: number = 1

STOPPED

STOPPED: number = 2

Generated using TypeDoc