File size: 283 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let _context;

const AudioContext = {
	getContext: function () {
		if (_context === undefined) {
			_context = new (window.AudioContext || window.webkitAudioContext)();
		}

		return _context;
	},

	setContext: function (value) {
		_context = value;
	},
};

export { AudioContext };