Преглед на файлове

according to spec, we should only have one audiocontext per document, so initialize it as static member

lqdchrm преди 12 години
родител
ревизия
11b9fcc619
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/js/AudioObject.js

+ 1 - 1
examples/js/AudioObject.js

@@ -38,7 +38,7 @@ THREE.AudioObject = function ( url, volume, playbackRate, loop ) {
 
 		try {
 
-			this.context = new webkitAudioContext();
+			THREE.AudioObject.prototype.context = new webkitAudioContext();
 
 		} catch( error ) {