提交 11b9fcc6 编写于 作者: L lqdchrm

according to spec, we should only have one audiocontext per document, so...

according to spec, we should only have one audiocontext per document, so initialize it as static member
上级 f7e120df
......@@ -38,7 +38,7 @@ THREE.AudioObject = function ( url, volume, playbackRate, loop ) {
try {
this.context = new webkitAudioContext();
THREE.AudioObject.prototype.context = new webkitAudioContext();
} catch( error ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册