AudioContext - Verge3D User Manual - Soft8Soft
Description: Learn how to use AudioContext in your interactive 3D apps made with Verge3D

# 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() → AudioContext

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

### # .setContext(value : AudioContext)

Set the variable `context` in the outer scope to `value`.

## Puzzles

Verge3D offers audio puzzles to simplify work with sounds and music.

## Source

For more info on how to obtain the source code of this module see this page.