Download node_modules/three/src/audio/AudioContext.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/audio/AudioContext.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/audio/AudioContext.js
-
curl -L -o AudioContext.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/audio/AudioContext.js
284 Bytes
| let _context; | |
| class AudioContext { | |
| static getContext() { | |
| if ( _context === undefined ) { | |
| _context = new ( window.AudioContext || window.webkitAudioContext )(); | |
| } | |
| return _context; | |
| } | |
| static setContext( value ) { | |
| _context = value; | |
| } | |
| } | |
| export { AudioContext }; | |