Buckets:
| let _context; | |
| /** | |
| * Manages the global audio context in the engine. | |
| * | |
| * @hideconstructor | |
| */ | |
| class AudioContext { | |
| /** | |
| * Returns the global native audio context. | |
| * | |
| * @return {AudioContext} The native audio context. | |
| */ | |
| static getContext() { | |
| if ( _context === undefined ) { | |
| _context = new ( window.AudioContext || window.webkitAudioContext )(); | |
| } | |
| return _context; | |
| } | |
| /** | |
| * Allows to set the global native audio context from outside. | |
| * | |
| * @param {AudioContext} value - The native context to set. | |
| */ | |
| static setContext( value ) { | |
| _context = value; | |
| } | |
| } | |
| export { AudioContext }; | |
Xet Storage Details
- Size:
- 617 Bytes
- Xet hash:
- 53a7ac5d83df2582e250372ec9731d82ddd4f2c8f4eef0a344174eadffaf61a7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.