OSDN Git Service
(root)
/
webglgame
/
webgl_framework.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
three.jsをThirdPartyに追加
[webglgame/webgl_framework.git]
/
webglFramework
/
Thirdparty
/
three.js-master
/
src
/
audio
/
AudioContext.js
1
var context;
2
3
var AudioContext = {
4
5
getContext: function () {
6
7
if ( context === undefined ) {
8
9
context = new ( window.AudioContext || window.webkitAudioContext )();
10
11
}
12
13
return context;
14
15
},
16
17
setContext: function ( value ) {
18
19
context = value;
20
21
}
22
23
};
24
25
export { AudioContext };