WebAudio AudioContext close Sample

Available in Chrome 43+

The AudioContext.close method closes the audio context, stopping audio operations, and releases any system resources in use. It will not necessarily release objects created by this AudioContext. This method returns a Promise that resolves when any resources blocking further creation of other audio contexts have been released.

Manages a pool of AudioContext instances, allowing it to be grown or shrunk (by explicitly closing a random context). If your browser prevents creation of further contexts, close one first.