@types/three
Version:
TypeScript definitions for three
20 lines (19 loc) • 482 B
TypeScript
/**
* Manages the global audio context in the engine.
*
* @hideconstructor
*/
export class AudioContext {
/**
* Returns the global native audio context.
*
* @return {AudioContext} The native audio context.
*/
static getContext(): AudioContext;
/**
* Allows to set the global native audio context from outside.
*
* @param {AudioContext} value - The native context to set.
*/
static setContext(value: AudioContext): void;
}