Skip to main content

AudioContext

This contains methods for setting up an AudioContext.

Used internally by the AudioListener and AudioLoader classes.

This uses the Web Audio API.

Methods

getContext

function getContext( ): AudioContext;  

Return the value of the variable context in the outer scope, if defined, otherwise set it to a new AudioContext.

setContext

function setContext( value: AudioContext ): AudioContext;  

Set the variable context in the outer scope to value.

Source

src/audio/AudioContext.js