Options
All
  • Public
  • Public/Protected
  • All
Menu

Module audio/audioContext

Index

Variables

Variables

Const AudioContext

AudioContext: { getContext: () => AudioContext; setContext: (value: AudioContext) => void } = ...

This contains methods for setting up an AudioContext. Used internally by the AudioListener and AudioLoader classes. This uses the Web Audio API.

Type declaration

  • getContext: () => AudioContext
      • (): AudioContext
      • Return the value of the variable context in the outer scope, if defined, otherwise set it to a new AudioContext.

        Returns AudioContext

  • setContext: (value: AudioContext) => void
      • (value: AudioContext): void
      • Set the variable context in the outer scope to value.

        Parameters

        • value: AudioContext

        Returns void

Generated using TypeDoc