浏览代码

Audio: Removed backwards compatibility.

Mr.doob 9 年之前
父节点
当前提交
a63f1bec10
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. 0 13
      src/Three.Legacy.js
  2. 1 0
      src/audio/AudioListener.js

+ 0 - 13
src/Three.Legacy.js

@@ -2,19 +2,6 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-Object.defineProperties( THREE.Audio.prototype, {
-	setRefDistance: {
-		value: function () {
-			console.warn( 'THREE.Audio: .setRefDistance() has been moved to THREE.PositionalAudio.' );
-		}
-	},
-	setRolloffFactor: {
-		value: function () {
-			console.warn( 'THREE.Audio: .setRolloffFactor() has been moved to THREE.PositionalAudio.' );
-		}
-	}
-} );
-
 Object.defineProperties( THREE.Box2.prototype, {
 	isIntersectionBox: {
 		value: function ( box ) {

+ 1 - 0
src/audio/AudioListener.js

@@ -9,6 +9,7 @@ THREE.AudioListener = function () {
 	this.type = 'AudioListener';
 
 	this.context = new ( window.AudioContext || window.webkitAudioContext )();
+
 	this.gain = this.context.createGain();
 	this.gain.connect( this.context.destination );