| 1234567891011121314151617181920212223242526272829 |
- /**
- * @author mrdoob / http://mrdoob.com/
- */
- var _context;
- var AudioContext = {
- getContext: function () {
- if ( _context === undefined ) {
- _context = new ( window.AudioContext || window.webkitAudioContext )();
- }
- return _context;
- },
- setContext: function ( value ) {
- _context = value;
- }
- };
- export { AudioContext };
|