Browse Source

Updated builds.

Mr.doob 8 years ago
parent
commit
90328a26c0
5 changed files with 50 additions and 134 deletions
  1. 21 15
      build/three.js
  2. 0 0
      build/three.js.map
  3. 9 111
      build/three.min.js
  4. 20 8
      build/three.modules.js
  5. 0 0
      build/three.modules.js.map

+ 21 - 15
build/three.js

@@ -35241,17 +35241,29 @@
 
 	var context;
 
-	function getAudioContext() {
+	function AudioContext() {}
 
-		if ( context === undefined ) {
+	Object.assign( AudioContext, {
 
-			context = new ( window.AudioContext || window.webkitAudioContext )();
+		getContext: function () {
 
-		}
+			if ( context === undefined ) {
 
-		return context;
+				context = new ( window.AudioContext || window.webkitAudioContext )();
 
-	}
+			}
+
+			return context;
+
+		},
+
+		setContext: function ( value ) {
+
+			context = value;
+			
+		}
+
+	} );
 
 	/**
 	 * @author Reece Aaron Lecrivain / http://reecenotes.com/
@@ -35271,7 +35283,7 @@
 			loader.setResponseType( 'arraybuffer' );
 			loader.load( url, function ( buffer ) {
 
-				var context = getAudioContext();
+				var context = AudioContext.getContext();
 
 				context.decodeAudioData( buffer, function ( audioBuffer ) {
 
@@ -35474,7 +35486,7 @@
 
 		this.type = 'AudioListener';
 
-		this.context = getAudioContext();
+		this.context = AudioContext.getContext();
 
 		this.gain = this.context.createGain();
 		this.gain.connect( this.context.destination );
@@ -42191,7 +42203,7 @@
 	exports.Camera = Camera;
 	exports.AudioListener = AudioListener;
 	exports.PositionalAudio = PositionalAudio;
-	exports.getAudioContext = getAudioContext;
+	exports.AudioContext = AudioContext;
 	exports.AudioAnalyser = AudioAnalyser;
 	exports.Audio = Audio;
 	exports.VectorKeyframeTrack = VectorKeyframeTrack;
@@ -42502,11 +42514,5 @@
 
 	Object.defineProperty(exports, '__esModule', { value: true });
 
-	Object.defineProperty( exports, 'AudioContext', {
-		get: function () {
-			return exports.getAudioContext();
-		}
-	});
-
 })));
 //# sourceMappingURL=three.js.map

File diff suppressed because it is too large
+ 0 - 0
build/three.js.map


File diff suppressed because it is too large
+ 9 - 111
build/three.min.js


File diff suppressed because it is too large
+ 20 - 8
build/three.modules.js


File diff suppressed because it is too large
+ 0 - 0
build/three.modules.js.map


Some files were not shown because too many files changed in this diff