Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new AudioConfig(initialized?: boolean, paused?: boolean, unlocked?: boolean): AudioConfig
  • Parameters

    • Optional initialized: boolean
    • Optional paused: boolean
    • Optional unlocked: boolean

    Returns AudioConfig

Properties

initialized

initialized: boolean

True if the audio context is initialized.

After you export and launch the project, and the AudioSystem updates for the first time, the AudioConfig component attempts to initialize audio. If successful, it sets this value to true.

Once audio is initialized successfully the AudioConfig component does not re-attempt to initialize it on subsequent AudioSystem updates.

paused

paused: boolean

If true, pauses the audio context. Set this at any time to pause or resume audio.

unlocked

unlocked: boolean

True if the audio context is unlocked in the browser. Some browsers require a user interaction, for example a touch interaction or key input, to unlock the audio context. If the context is locked no audio plays.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static initialized

initialized: ComponentFieldDesc

Static paused

Static unlocked

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc